Work around sed output difference that led to version containing a newline on OSX.

This commit is contained in:
Joey Hess 2013-10-16 10:28:13 -04:00
parent 89345b7108
commit ecb4a30548
2 changed files with 3 additions and 1 deletions

View file

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

2
debian/changelog vendored
View file

@ -21,6 +21,8 @@ git-annex (4.20131003) UNRELEASED; urgency=low
* status: Fix a crash if a temp file went away while its size was
being checked for status.
* Deal with git check-attr -z output format change in git 1.8.5.
* Work around sed output difference that led to version containing a newline
on OSX.
-- Joey Hess <joeyh@debian.org> Thu, 03 Oct 2013 15:41:24 -0400