diff options
author | Joey Hess <joey@kitenet.net> | 2013-10-16 10:33:32 -0400 |
---|---|---|
committer | Joey Hess <joey@kitenet.net> | 2013-10-16 10:33:32 -0400 |
commit | ac76fe2f64a37c3d73ba5382d2eb7df37108d32a (patch) | |
tree | 69d1f9d1f57836f8eda5781faa60fc86bc7d2d35 | |
parent | 45ef5b07c0b428978463886f8769533167c059aa (diff) |
fix inclusion of -gitrev
-rw-r--r-- | Build/Version.hs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Build/Version.hs b/Build/Version.hs index e34237e5b..7ff2fe662 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 <- takeWhile isAlphaNum <$> readProcess "sh" + autoversion <- takeWhile (\c -> isAlphaNum c || c == '-') <$> readProcess "sh" [ "-c" , "git log -n 1 --format=format:'%ci %h'| sed -e 's/-//g' -e 's/ .* /-g/'" ] "" |