From fb8d964966f214c350a6073abb7b905851e74a0c Mon Sep 17 00:00:00 2001 From: Nathan LeClaire Date: Tue, 27 Oct 2015 17:19:38 -0700 Subject: [PATCH] Pipe error output from git line to /dev/null This will simply leave the tag empty if compiled independent of a source repository. Signed-off-by: Nathan LeClaire --- mk/main.mk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mk/main.mk b/mk/main.mk index cb6d1a75a7..abf54c7e13 100644 --- a/mk/main.mk +++ b/mk/main.mk @@ -1,5 +1,5 @@ # Initialize version and gc flags -GO_LDFLAGS := -X `go list ./version`.GitCommit=`git rev-parse --short HEAD` +GO_LDFLAGS := -X `go list ./version`.GitCommit=`git rev-parse --short HEAD 2>/dev/null` GO_GCFLAGS := # Full package list