mirror of
https://github.com/git/git.git
synced 2026-03-13 18:33:25 +01:00
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", but take extra care not to convert absolute paths to that syntax! Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
This commit is contained in:
3
git-parse-remote.sh
Executable file → Normal file
3
git-parse-remote.sh
Executable file → Normal file
@@ -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 () {
|
||||
|
||||
Reference in New Issue
Block a user