Skip to content

Commit

Permalink
build: Use git rev-parse to accomodate older gits (argoproj#3497)
Browse files Browse the repository at this point in the history
  • Loading branch information
simster7 authored Jul 16, 2020
1 parent 3eb6e2f commit bcb3254
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ OUTPUT_IMAGE_ARCH ?= amd64
BUILD_DATE = $(shell date -u +'%Y-%m-%dT%H:%M:%SZ')
GIT_COMMIT = $(shell git rev-parse HEAD)
GIT_REMOTE = origin
GIT_BRANCH = $(shell git branch --show-current)
GIT_BRANCH = $(shell git rev-parse --symbolic-full-name --verify --quiet --abbrev-ref HEAD)
GIT_TAG = $(shell git describe --exact-match --tags HEAD 2>/dev/null || git rev-parse --short=8 HEAD 2>/dev/null)
GIT_TREE_STATE = $(shell if [ -z "`git status --porcelain`" ]; then echo "clean" ; else echo "dirty"; fi)

Expand Down

0 comments on commit bcb3254

Please sign in to comment.