Skip to content

Commit 46c39ce

Browse files
rubyisttechnoweenie
authored andcommitted
Backport allow-no-commit from git-lfs#549 to release-0.5
1 parent b00fa51 commit 46c39ce

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)