From d8e43b074d29c526194ec987c1cafdeb80c35048 Mon Sep 17 00:00:00 2001 From: Johannes Schindelin Date: Sun, 5 Aug 2007 05:53:58 +0100 Subject: [PATCH] Work around MinGW mangling of "host:/path" The common way to specify an ssh remote is to say "host:/path", but MinGW decides for us that this is probably a path list, and path lists are separated by a semicolon on Windows. So before passing this to git-peek-remote.exe, it transforms that to "host;C:/msysGit/path". Avoid that by expanding it to "ssh://host/path". Signed-off-by: Johannes Schindelin --- git/git-parse-remote.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/git/git-parse-remote.sh b/git/git-parse-remote.sh index 695a4094..d2b87f0c 100644 --- a/git/git-parse-remote.sh +++ b/git/git-parse-remote.sh @@ -51,7 +51,8 @@ get_remote_url () { ;; *) die "internal error: get-remote-url $1" ;; - esac + esac | sed "s|^\(.[^:]*\):\(/[^/]\)|ssh://\1\2|" + # work around MinGW path mangling } get_default_remote () { -- 2.11.4.GIT