git-lfs/script/run
Brett Randall d344012bb4 Applied same -ldflags -X name value -> name=value fix as in a62e510f.
Squashes script/run warning:
link: warning: option -X github.com/github/git-lfs/lfs.GitCommit 54c5efa may not work in future releases; use -X github.com/github/git-lfs/lfs.GitCommit=54c5efa
2016-05-03 09:48:17 +10:00

5 lines
177 B
Bash
Executable File

#!/usr/bin/env bash
script/fmt
commit=`git rev-parse --short HEAD`
GO15VENDOREXPERIMENT=0 go run -ldflags="-X github.com/github/git-lfs/lfs.GitCommit=$commit" ./git-lfs.go "$@"