From 0eec28bbb08078898b9b700f91320aff74c74e82 Mon Sep 17 00:00:00 2001 From: Johannes Schindelin Date: Mon, 6 Aug 2007 16:49:51 +0100 Subject: [PATCH] Fix overzealous :/ -> ssh:/// transformation It caught absolute paths, too. With builtin fetch and clone, this problem will be gone anyway, so let's keep this workaround and work on other things. Signed-off-by: Johannes Schindelin --- git/git-parse-remote.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/git/git-parse-remote.sh b/git/git-parse-remote.sh index d2b87f0c..7c0d242e 100644 --- a/git/git-parse-remote.sh +++ b/git/git-parse-remote.sh @@ -51,7 +51,7 @@ get_remote_url () { ;; *) die "internal error: get-remote-url $1" ;; - esac | sed "s|^\(.[^:]*\):\(/[^/]\)|ssh://\1\2|" + esac | sed "s|^\(.[^:][^:]*\):\(/[^/]\)|ssh://\1\2|" # work around MinGW path mangling } -- 2.11.4.GIT