From: martin f. krafft Date: Thu, 25 Oct 2007 23:11:08 +0000 (+0200) Subject: Do not fail determining git url X-Git-Url: https://git.madduck.net/code/myrepos.git/commitdiff_plain/e7a82f206d14cbaad72df80de8844feadbe5a24b Do not fail determining git url If no remote URL is in GIT_CONFIG, git-config returns non-zero and thus causes the script to fail due to set -e. We test for $url anyway, so we can just keep going here. --- diff --git a/mr b/mr index c1ccaee..f5c37af 100755 --- a/mr +++ b/mr @@ -1100,7 +1100,7 @@ register = non-bare) config=.git/config;; bare|fake-bare) config=config;; esac - url="$(LANG=C GIT_CONFIG="$config" git-config --get remote.origin.url)" + url="$(LANG=C GIT_CONFIG="$config" git-config --get remote.origin.url)" || : if [ -z "$url" ]; then error "cannot determine git url" fi