mirror of https://github.com/docker/docs.git
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:
parent
9fa2f73139
commit
fb8d964966
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue