summaryrefslogtreecommitdiff
path: root/git-am.sh
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2013-01-28 10:59:24 -0800
committerJunio C Hamano <gitster@pobox.com>2013-01-28 10:59:24 -0800
commit738b314a3e3a9baa45b269ffa35732e54331f7b7 (patch)
treec5b2239e881765ac6cc79349438e771150d79305 /git-am.sh
parentd959a78d98283a1166504184a497a798b7d81f3f (diff)
parent5185b9707a768a0ad17de4765c7893f86f4c4a0e (diff)
downloadgit-738b314a3e3a9baa45b269ffa35732e54331f7b7.tar.gz
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
Diffstat (limited to 'git-am.sh')
-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 /) {