show full git SHA in ark version output

Signed-off-by: Steve Kriss <steve@heptio.com>
This commit is contained in:
Steve Kriss
2018-12-06 13:21:05 -07:00
parent 59ca9a3974
commit ac317a87ff
4 changed files with 9 additions and 12 deletions

View File

@@ -41,7 +41,7 @@ fi
export CGO_ENABLED=0
GIT_SHA=$(git describe --tags --always)
GIT_SHA=$(git rev-parse HEAD)
GIT_DIRTY=$(git status --porcelain 2> /dev/null)
if [[ -z "${GIT_DIRTY}" ]]; then
GIT_TREE_STATE=clean