]> git.madduck.net Git - code/myrepos.git/commitdiff

madduck's git repository

Every one of the projects in this repository is available at the canonical URL git://git.madduck.net/madduck/pub/<projectpath> — see each project's metadata for the exact URL.

All patches and comments are welcome. Please squash your changes to logical commits before using git-format-patch and git-send-email to patches@git.madduck.net. If you'd read over the Git project's submission guidelines and adhered to them, I'd be especially grateful.

SSH access, as well as push access can be individually arranged.

If you use my repositories frequently, consider adding the following snippet to ~/.gitconfig and using the third clone URL listed for each project:

[url "git://git.madduck.net/madduck/"]
  insteadOf = madduck:

* Use LC_MESSAGES=C not LANG=C, as if the user has LC_MESSAGES set, LANG
authorJoey Hess <joey@kitenet.net>
Wed, 28 Nov 2007 20:46:45 +0000 (15:46 -0500)
committerJoey Hess <joey@kitenet.net>
Wed, 28 Nov 2007 20:46:45 +0000 (15:46 -0500)
  won't override it. Closes: #453305

debian/changelog
lib/git-fake-bare
mr
mrconfig.complex

index efd897b48c5acbb5495ac130aa1b17efbe941572..6ea3f1a37f220a679658fd28e0ccff4c23f8dacf 100644 (file)
@@ -1,3 +1,10 @@
+mr (0.16) unstable; urgency=low
+
+  * Use LC_MESSAGES=C not LANG=C, as if the user has LC_MESSAGES set, LANG
+    won't override it. Closes: #453305
+
+ -- Joey Hess <joeyh@debian.org>  Wed, 28 Nov 2007 15:46:38 -0500
+
 mr (0.15) unstable; urgency=low
 
   [ Joey Hess ]
index 8afb84aaa2fadc42b90ac0c15c62d14738c4685b..ac634045d3b4defe0bc1cea0b069b4787947af80 100644 (file)
@@ -48,7 +48,7 @@ git_fake_bare_diff = error "diff does not work for fake bare git repositories (y
 git_fake_bare_log = git log "$@"
 
 git_fake_bare_register = 
-       url="$(LANG=C GIT_CONFIG=config git-config --get remote.origin.url)" || true
+       url="$(LC_MESSAGES=C GIT_CONFIG=config git-config --get remote.origin.url)" || true
        if [ -z "$url" ]; then
                error "cannot determine git url"
        fi
diff --git a/mr b/mr
index 8cfe01365a9994895430e2dbe714eb2b4cdb00b0..db3abc5c0df4bfd46d2687fae195f1cb3df07688 100755 (executable)
--- a/mr
+++ b/mr
@@ -1202,14 +1202,14 @@ darcs_log = darcs changes "$@"
 git_bare_log = git log "$@"
 
 svn_register =
-       url=`LANG=C svn info . | grep -i '^URL:' | cut -d ' ' -f 2`
+       url=`LC_MESSAGES=C svn info . | grep -i '^URL:' | cut -d ' ' -f 2`
        if [ -z "$url" ]; then
                error "cannot determine svn url"
        fi
        echo "Registering svn url: $url in $MR_CONFIG"
        mr -c "$MR_CONFIG" config "`pwd`" checkout="svn co '$url' '$MR_REPO'"
 git_register = 
-       url="`LANG=C git config --get remote.origin.url`" || true
+       url="`LC_MESSAGES=C git config --get remote.origin.url`" || true
        if [ -z "$url" ]; then
                error "cannot determine git url"
        fi
@@ -1239,7 +1239,7 @@ darcs_register =
        echo "Registering darcs repository $url in $MR_CONFIG"
        mr -c "$MR_CONFIG" config "`pwd`" checkout="darcs get '$url'p '$MR_REPO'"
 git_bare_register = 
-       url="`LANG=C GIT_CONFIG=config git config --get remote.origin.url`" || true
+       url="`LC_MESSAGES=C GIT_CONFIG=config git config --get remote.origin.url`" || true
        if [ -z "$url" ]; then
                error "cannot determine git url"
        fi
index 8f86b701c99baf0d2e9adfc4dab40668fdd05134..d329cf31520733ab1fc0d72b9d5c79b0f1053780 100644 (file)
@@ -11,7 +11,7 @@ svn_cleanup = svn cleanup "$@"
 git_gc = git gc "$@"
 git_push = git push "$@"
 git_tag = git tag -l
-svn_tag = svn ls "$(LANG=C svn info . | grep -i ^URL: | cut -d ' ' -f 2 | sed -e 's/trunk/tags/')"
+svn_tag = svn ls "$(LC_MESSAGES=C svn info . | grep -i ^URL: | cut -d ' ' -f 2 | sed -e 's/trunk/tags/')"
 # This hack is here because git-pull stupidly outputs tag info to stderr.
 # Shut it up but let real errors through, for use in cron.
 quietupdate = mr -s -n update 3>&1 1>/dev/null 2>&3 | egrep -v '(storing tag|tag: )' || true