Skip to content

Commit b9c2e58

Browse files
committed
Merge pull request git-lfs#550 from github/release-0.5-backport-549
Backport git-lfs#549 for v0.5.x: Don't panic if we can't find the git commit for the version
2 parents b00fa51 + 46c39ce commit b9c2e58

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

script/build.go

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -35,10 +35,7 @@ func mainBuild() {
3535
return
3636
}
3737

38-
cmd, err := exec.Command("git", "rev-parse", "--short", "HEAD").Output()
39-
if err != nil {
40-
panic(err)
41-
}
38+
cmd, _ := exec.Command("git", "rev-parse", "--short", "HEAD").Output()
4239

4340
if len(cmd) > 0 {
4441
LdFlag = strings.TrimSpace("-X github.com/github/git-lfs/lfs.GitCommit " + string(cmd))

0 commit comments

Comments
 (0)