@cryptotaxi247 / kubo / commits / 6976ca748

fix makefile failing when not in a git repo

License: MIT Signed-off-by: Jeromy <jeromyj@gmail.com>

Jeromy committed Oct 19, 2015 at 15:39 UTC 6976ca7480c2e95960fb14aa58eeb82d480f2cc2
2 files changed +2 -2
cmd/ipfs/Makefile
+1 -1
@@ -1,5 +1,5 @@
1 all: install
2 -commit = `git rev-parse --short HEAD`
2 +commit = $(shell git rev-parse --short HEAD 2> /dev/null || echo unknown)
3 ldflags = "-X "github.com/ipfs/go-ipfs/repo/config".CurrentCommit=$(commit)"
4
5 build:
repo/config/version.go
+1 -1
@@ -8,7 +8,7 @@ import (
8 )
9
10 // CurrentVersionNumber is the current application's version literal
11 -const CurrentVersionNumber = "0.3.8"
11 +const CurrentVersionNumber = "0.3.9-dev"
12
13 // CurrentCommit is the current git commit, this is set as a ldflag in the Makefile
14 var CurrentCommit string