8ac5e011d6
GitOrigin-RevId: 2c3273caa153ee8eb5786bc8141b85b859e7efd7
15 lines
534 B
Diff
15 lines
534 B
Diff
diff --git a/Makefile b/Makefile
|
|
index ab794165..0cbd047f 100644
|
|
--- a/Makefile
|
|
+++ b/Makefile
|
|
@@ -5,8 +5,8 @@ PREFIX?=$(shell pwd)
|
|
# Add to compile time flags
|
|
NOTARY_PKG := github.com/theupdateframework/notary
|
|
NOTARY_VERSION := $(shell cat NOTARY_VERSION)
|
|
-GITCOMMIT := $(shell git rev-parse --short HEAD)
|
|
-GITUNTRACKEDCHANGES := $(shell git status --porcelain --untracked-files=no)
|
|
+GITCOMMIT ?= $(shell git rev-parse --short HEAD)
|
|
+GITUNTRACKEDCHANGES :=
|
|
ifneq ($(GITUNTRACKEDCHANGES),)
|
|
GITCOMMIT := $(GITCOMMIT)-dirty
|
|
endif
|