]> 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 LANG=C when parsing command output
authorJoey Hess <joey@kodama.kitenet.net>
Sat, 13 Oct 2007 17:22:44 +0000 (13:22 -0400)
committerJoey Hess <joey@kodama.kitenet.net>
Sat, 13 Oct 2007 17:22:44 +0000 (13:22 -0400)
Thanks to Gabriel de Perthuis for the bug report.

mr

diff --git a/mr b/mr
index e15019e3b8092e74a250b9f902cd02a61d2b922c..c5efb749dd9cc2072744038e2743bfcc692a098d 100755 (executable)
--- a/mr
+++ b/mr
@@ -716,7 +716,7 @@ register =                                                          \
        cd "$1"                                                         \
        basedir="$(basename $(pwd))"                                    \
        if [ -d .svn ]; then                                            \
        cd "$1"                                                         \
        basedir="$(basename $(pwd))"                                    \
        if [ -d .svn ]; then                                            \
-               url=$(svn info . |                                      \
+               url=$(LANG=C svn info . |                                       \
                      grep -i ^URL: | cut -d ' ' -f 2)                  \
                if [ -z "$url" ]; then                                  \
                        error "cannot determine svn url"                \
                      grep -i ^URL: | cut -d ' ' -f 2)                  \
                if [ -z "$url" ]; then                                  \
                        error "cannot determine svn url"                \
@@ -724,7 +724,7 @@ register =                                                          \
                echo "Registering svn url: $url"                        \
                mr config "$(pwd)" checkout="svn co $url $basedir"      \
        elif [ -d .git ]; then                                          \
                echo "Registering svn url: $url"                        \
                mr config "$(pwd)" checkout="svn co $url $basedir"      \
        elif [ -d .git ]; then                                          \
-               url=$(git-config --get remote.origin.url)               \
+               url=$(LANG=C git-config --get remote.origin.url)                \
                if [ -z "$url" ]; then                                  \
                        error "cannot determine git url"                \
                fi                                                      \
                if [ -z "$url" ]; then                                  \
                        error "cannot determine git url"                \
                fi                                                      \