diff --git a/hack/config-go.sh b/hack/config-go.sh index 15f52332433..f445e292752 100644 --- a/hack/config-go.sh +++ b/hack/config-go.sh @@ -31,6 +31,8 @@ function gitcommit() { # Check if the tree is dirty. if ! dirty_tree=$(git status --porcelain) || [[ -n "${dirty_tree}" ]]; then echo "${git_commit}-dirty" + else + echo "${git_commit}" fi else echo "(none)"