From: Joey Hess Date: Fri, 26 Oct 2007 01:01:10 +0000 (-0400) Subject: merge madduck's fix to not fail determining git url X-Git-Url: https://git.madduck.net/code/myrepos.git/commitdiff_plain/bfaeb2cbab57f052a4d4ce25b48e6fcf132ecc03?hp=02361613f3a246bda39cd17e99ee4169f5b25496 merge madduck's fix to not fail determining git url --- diff --git a/mr b/mr index 5794ab0..dc1e2ac 100755 --- a/mr +++ b/mr @@ -1125,7 +1125,7 @@ svn_register = 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)" + url="$(LANG=C git-config --get remote.origin.url)" || true if [ -z "$url" ]; then error "cannot determine git url" fi @@ -1155,7 +1155,7 @@ darcs_register = echo "Registering darcs repository $url in $MR_CONFIG" mr -c "$MR_CONFIG" config "`pwd`" checkout="darcs get $url $MR_REPO" git_bare_register = - url="$(LANG=C GIT_CONFIG=config git-config --get remote.origin.url)" + url="$(LANG=C GIT_CONFIG=config git-config --get remote.origin.url)" || true if [ -z "$url" ]; then error "cannot determine git url" fi @@ -1164,7 +1164,7 @@ git_bare_register = echo "Registering git url: $url in $MR_CONFIG" mr -c "$MR_CONFIG" config "`pwd`" checkout="git clone $url $MR_REPO" git_fake_bare_register = - url="$(LANG=C GIT_CONFIG=config git-config --get remote.origin.url)" + url="$(LANG=C GIT_CONFIG=config git-config --get remote.origin.url)" || true if [ -z "$url" ]; then error "cannot determine git url" fi