We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 032fafb commit 0192eb9Copy full SHA for 0192eb9
Makefile
@@ -1,7 +1,7 @@
1
GO_OS := $(shell go env GOOS)
2
GO_ARCH := $(shell go env GOARCH)
3
4
-GIT_BRANCH := $(shell git rev-parse --abbrev-ref HEAD)
+GIT_BRANCH := $(shell git symbolic-ref -q --short HEAD || git describe --tags --exact-match)
5
6
.PHONY: all
7
all: generate test
0 commit comments