summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLibravatar Junio C Hamano <gitster@pobox.com>2013-01-28 10:59:24 -0800
committerLibravatar Junio C Hamano <gitster@pobox.com>2013-01-28 10:59:24 -0800
commit738b314a3e3a9baa45b269ffa35732e54331f7b7 (patch)
treec5b2239e881765ac6cc79349438e771150d79305
parentMerge branch 'jc/help' (diff)
parentam: invoke perl's strftime in C locale (diff)
downloadtgif-738b314a3e3a9baa45b269ffa35732e54331f7b7.tar.xz
Merge branch 'dl/am-hg-locale'
Datestamp recorded in "Hg" format patch was reformatted incorrectly to an e-mail looking date using locale dependant strftime, causing patch application to fail. * dl/am-hg-locale: am: invoke perl's strftime in C locale
-rwxr-xr-xgit-am.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/git-am.sh b/git-am.sh
index c682d34094..b4d95f58c6 100755
--- a/git-am.sh
+++ b/git-am.sh
@@ -334,7 +334,7 @@ split_patches () {
# Since we cannot guarantee that the commit message is in
# git-friendly format, we put no Subject: line and just consume
# all of the message as the body
- perl -M'POSIX qw(strftime)' -ne 'BEGIN { $subject = 0 }
+ LANG=C LC_ALL=C perl -M'POSIX qw(strftime)' -ne 'BEGIN { $subject = 0 }
if ($subject) { print ; }
elsif (/^\# User /) { s/\# User/From:/ ; print ; }
elsif (/^\# Date /) {