Skip to content

Commit 8c9ef54

Browse files
committed
Fix version command
1 parent 5cf9e8e commit 8c9ef54

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

cmd/gitfs/version.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,9 @@ func getVersionString() string {
3131
lastCommit, _ = time.Parse(time.RFC3339, kv.Value)
3232
}
3333
}
34+
if revision == "" {
35+
return fmt.Sprintf("gitfs: version %s", info.Main.Version)
36+
}
3437
return fmt.Sprintf(
3538
"gitfs: version %s, build %s",
3639
revision,

0 commit comments

Comments
 (0)