1
0
mirror of https://github.com/ipfs/kubo.git synced 2025-06-28 00:39:31 +08:00

Merge pull request #1865 from ipfs/fix/makefile-sha

fix makefile failing when not in a git repo
This commit is contained in:
Juan Benet
2015-10-19 15:56:37 -07:00
2 changed files with 2 additions and 2 deletions

View File

@ -1,5 +1,5 @@
all: install
commit = `git rev-parse --short HEAD`
commit = $(shell git rev-parse --short HEAD 2> /dev/null || echo unknown)
ldflags = "-X "github.com/ipfs/go-ipfs/repo/config".CurrentCommit=$(commit)"
build:

View File

@ -8,7 +8,7 @@ import (
)
// CurrentVersionNumber is the current application's version literal
const CurrentVersionNumber = "0.3.8"
const CurrentVersionNumber = "0.3.9-dev"
// CurrentCommit is the current git commit, this is set as a ldflag in the Makefile
var CurrentCommit string