Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.kernel.org/pub/scm/git/git.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJunio C Hamano <junkio@cox.net>2005-11-11 10:34:08 +0300
committerJunio C Hamano <junkio@cox.net>2005-11-11 11:37:34 +0300
commite3e291fc07b49b74bb655ca854bdb19e849e044c (patch)
tree24777ef8ff471ee4d1f6174bfb53c71fd88ca1d6 /git-revert.sh
parent605607cc622478fb2e8dfcab2ff16f54b0995599 (diff)
Do not lose author name information to locale gotchas.
I noticed format-patch loses authorship information of Lukas' patch when I run git tools with LC_LANG set to ja_JP. It turns out that the sed script to set environment variables were not working on his name (encoded in UTF-8), which is unfortunate but technically correct. Force sed invocation under C locale because we always want literal byte semantics. Signed-off-by: Junio C Hamano <junkio@cox.net>
Diffstat (limited to 'git-revert.sh')
-rwxr-xr-xgit-revert.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/git-revert.sh b/git-revert.sh
index dfd914cf56..4154fe0d15 100755
--- a/git-revert.sh
+++ b/git-revert.sh
@@ -112,7 +112,7 @@ cherry-pick)
q
}'
set_author_env=`git-cat-file commit "$commit" |
- sed -ne "$pick_author_script"`
+ LANG=C LC_ALL=C sed -ne "$pick_author_script"`
eval "$set_author_env"
export GIT_AUTHOR_NAME
export GIT_AUTHOR_EMAIL