Fix warning on go 1.5

link: warning: option -X main.gitCommit 6ec13e7e2b may not work in future releases; use -X main.gitCommit=6ec13e7e2bab1ebdb580819a48629055bbbb5fb3
This commit is contained in:
Jonathan Brown 2015-08-27 05:24:36 +07:00
parent fd512fa12c
commit a93c267ab4

View file

@ -9,5 +9,5 @@ fi
# set gitCommit when running from a Git checkout.
if [ -f ".git/HEAD" ]; then
echo "-ldflags '-X main.gitCommit $(git rev-parse HEAD)'"
echo "-ldflags '-X main.gitCommit=$(git rev-parse HEAD)'"
fi