summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorGeoffrey Thomas <geofft@mit.edu>2009-11-20 20:32:02 -0500
committerRoger Leigh <rleigh@debian.org>2009-11-24 01:17:29 +0000
commitb48c7a3b0d1af280e83d02ea06fd4d0d1e433cc9 (patch)
treeb90b1a77476aab7937d8c7e490405fcf983c6d55 /scripts
parent57ea00ec1a2f656a80f13698256c200786c50987 (diff)
downloadschroot-b48c7a3b0d1af280e83d02ea06fd4d0d1e433cc9.tar.gz
scripts/git-version: Ask git for date differently
--date=iso appears to be broken in lenny's git (1.5.6.5). This code is simpler anyway. Signed-off-by: Geoffrey Thomas <geofft@mit.edu> Signed-off-by: Roger Leigh <rleigh@debian.org>
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/git-version2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/git-version b/scripts/git-version
index 9e772b60..1d6e83f1 100755
--- a/scripts/git-version
+++ b/scripts/git-version
@@ -7,7 +7,7 @@ TAG="release/${PACKAGE}-${VERSION}"
COMMIT="$(git rev-parse "$TAG^{}")" 2>/dev/null || COMMIT=""
if [ -n "$COMMIT" ]; then
- COMMIT_DATE="$(git log -1 --date=iso "$COMMIT" --pretty="format:%ad")"
+ COMMIT_DATE="$(git log -1 "$COMMIT" --pretty="format:%ai")"
RELEASE_DATE="$(date --date="$COMMIT_DATE" '+%d %b %Y')"
RELEASE_BY="$(git show "$TAG" | sed -ne '/^Tagger:/{s/Tagger:[[:space:]][[:space:]]*//p;q}')"