Skip to content

Commit a04aa8a

Browse files
authored
Improve version message when compiled from release archive (#186)
1 parent b502eb5 commit a04aa8a

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

src/slivarpkg/version.nim

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,4 @@
1+
import strutils
2+
13
const slivarVersion* = "0.3.4"
2-
const slivarGitCommit* = staticExec("git rev-parse --verify HEAD")
4+
const slivarGitCommit* = staticExec("git rev-parse --verify HEAD 2>/dev/null").strip()

0 commit comments

Comments
 (0)