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 <nathan.leclaire@gmail.com>
This commit is contained in:
Nathan LeClaire 2015-10-27 17:19:38 -07:00
parent 9fa2f73139
commit fb8d964966
1 changed files with 1 additions and 1 deletions

View File

@ -1,5 +1,5 @@
# Initialize version and gc flags # 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 := GO_GCFLAGS :=
# Full package list # Full package list