fix inclusion of -gitrev

This commit is contained in:
Joey Hess 2013-10-16 10:33:32 -04:00
parent 3e960994c6
commit c5cd8729f2

View file

@ -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/'"
] ""