From e7a82f206d14cbaad72df80de8844feadbe5a24b Mon Sep 17 00:00:00 2001 From: "martin f. krafft" Date: Fri, 26 Oct 2007 01:11:08 +0200 Subject: [PATCH] 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. --- mr | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.39.2