summaryrefslogtreecommitdiff
path: root/01_Functions.zsh
diff options
context:
space:
mode:
authorHugues Hiegel <hugues@hiegel.fr>2010-06-24 11:06:52 +0200
committerHugues Hiegel <hugues@hiegel.fr>2010-06-24 11:06:52 +0200
commit77c94aa5c8ae000cd3a5eb6a9ccca27d00c4ed25 (patch)
treee950bf6e0027c7456684b336d844ef6f9a735b90 /01_Functions.zsh
parentc45b2a1d5bafe98517314a6d5b3b3d808f27b4b8 (diff)
[Funcs] don't use localized output
Diffstat (limited to '01_Functions.zsh')
-rw-r--r--01_Functions.zsh2
1 files changed, 1 insertions, 1 deletions
diff --git a/01_Functions.zsh b/01_Functions.zsh
index 0faebc8..33a0b4e 100644
--- a/01_Functions.zsh
+++ b/01_Functions.zsh
@@ -125,7 +125,7 @@ get_git_branch ()
# Initial commit
if [ -L $GIT_DIR/HEAD -a ! -f $GIT_DIR/HEAD ]
then
- my_git_branch="$(basename $GIT_DIR/$(stat --printf="%N\n" $GIT_DIR/HEAD | tr '`' "'" | cut -d\' -f4))"
+ my_git_branch="$(basename $GIT_DIR/$(LC_ALL=C stat --printf="%N\n" $GIT_DIR/HEAD | tr '`' "'" | cut -d\' -f4))"
else
my_git_branch="$(basename $GIT_DIR/$(cat $GIT_DIR/HEAD | sed 's/^\([0-9a-f]\{2\}\)\([0-9a-f]\{38\}\)$/objects\/\1\/\2/;s/^ref: //'))"
fi