X-Git-Url: http://git.tremily.us/?a=blobdiff_plain;f=git-am.sh;h=202130f888bee14e73b8cc108f39f2da8a14d23b;hb=d2216a4b133f90a543a0e4c4a9f9809a043012d6;hp=c682d34094d618734ac52d6d7e15a6c10ccfdeb6;hpb=0d2605112e25bb614d65771a04356639ab370dc3;p=git.git diff --git a/git-am.sh b/git-am.sh index c682d3409..202130f88 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 /) { @@ -664,7 +664,7 @@ do sed -e '1,/^$/d' >"$dotest/msg-clean" echo "$commit" >"$dotest/original-commit" get_author_ident_from_commit "$commit" >"$dotest/author-script" - git diff-tree --root --binary "$commit" >"$dotest/patch" + git diff-tree --root --binary --full-index "$commit" >"$dotest/patch" else git mailinfo $keep $no_inbody_headers $scissors $utf8 "$dotest/msg" "$dotest/patch" \ <"$dotest/$msgnum" >"$dotest/info" ||