From d1e21e723b6deb2263449195f6e63e5246d2e8b5 Mon Sep 17 00:00:00 2001 From: Joey Hess Date: Sat, 13 Oct 2007 13:22:44 -0400 Subject: [PATCH 1/1] use LANG=C when parsing command output Thanks to Gabriel de Perthuis for the bug report. --- mr | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mr b/mr index e15019e..c5efb74 100755 --- a/mr +++ b/mr @@ -716,7 +716,7 @@ register = \ 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" \ @@ -724,7 +724,7 @@ register = \ 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 \ -- 2.39.5