summaryrefslogtreecommitdiff
path: root/Build
diff options
context:
space:
mode:
Diffstat (limited to 'Build')
-rw-r--r--Build/Version.hs2
1 files changed, 1 insertions, 1 deletions
diff --git a/Build/Version.hs b/Build/Version.hs
index 98e0dbfd2..e34237e5b 100644
--- a/Build/Version.hs
+++ b/Build/Version.hs
@@ -32,7 +32,7 @@ getVersion = do
( return changelogversion
, catchDefaultIO changelogversion $ do
let major = takeWhile (/= '.') changelogversion
- autoversion <- readProcess "sh"
+ autoversion <- takeWhile isAlphaNum <$> readProcess "sh"
[ "-c"
, "git log -n 1 --format=format:'%ci %h'| sed -e 's/-//g' -e 's/ .* /-g/'"
] ""