Skip to content

Commit

Permalink
echo which file makes tree dirty
Browse files Browse the repository at this point in the history
Signed-off-by: Dhruv-J <[email protected]>
  • Loading branch information
Dhruv-J committed Dec 30, 2024
1 parent 6a561ee commit 71c06d4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions hack/update-codegen.sh
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ IMAGE_NAME="antrea/codegen:kubernetes-1.31.1-build.1"
# to the "safe" list in the Git config when starting the container (required
# because of user mismatch).
if git_status=$(git status --porcelain --untracked=no 2>/dev/null) && [[ -n "${git_status}" ]]; then
echo ${git_status}
echoerr "!!! Dirty tree. Clean up and try again."
exit 1
fi
Expand Down
1 change: 1 addition & 0 deletions multicluster/hack/update-codegen.sh
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ IMAGE_NAME="antrea/codegen:kubernetes-1.31.1-build.1"
# to the "safe" list in the Git config when starting the container (required
# because of user mismatch).
if git_status=$(git status --porcelain --untracked=no 2>/dev/null) && [[ -n "${git_status}" ]]; then
echo ${git_status}
echoerr "!!! Dirty tree. Clean up and try again."
exit 1
fi
Expand Down

0 comments on commit 71c06d4

Please sign in to comment.