Commit 6976ca74 authored by Jeromy's avatar Jeromy

fix makefile failing when not in a git repo

License: MIT
Signed-off-by: default avatarJeromy <jeromyj@gmail.com>
parent 057f0e28
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:
......
......@@ -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
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment