author | Thomas Rast <trast@student.ethz.ch> | |
Mon, 10 Jan 2011 10:37:26 +0000 (11:37 +0100) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Mon, 10 Jan 2011 17:10:54 +0000 (09:10 -0800) | ||
commit | ea640cc691d56f7151c5ba654b09c4a987dbef93 | |
tree | 039b65f623af477163357db76ea98752641c8a2b | tree | snapshot |
parent | cb198b3b67feb2c0a6f22199ec14fa48d18ac1ce | commit | diff |
submodule: fix relative url parsing for scp-style origin
The function resolve_relative_url was not prepared to deal with an
scp-style origin 'user@host:path' in the case where 'path' is only a
single component. Fix this by extending the logic that strips one
path component from the $remoteurl.
Also add tests for both styles of URLs.
Noticed-by: Jeffrey Phillips Freeman <jeffrey.freeman@syncleus.com>
Signed-off-by: Thomas Rast <trast@student.ethz.ch>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
The function resolve_relative_url was not prepared to deal with an
scp-style origin 'user@host:path' in the case where 'path' is only a
single component. Fix this by extending the logic that strips one
path component from the $remoteurl.
Also add tests for both styles of URLs.
Noticed-by: Jeffrey Phillips Freeman <jeffrey.freeman@syncleus.com>
Signed-off-by: Thomas Rast <trast@student.ethz.ch>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
git-submodule.sh | diff | blob | history | |
t/t7400-submodule-basic.sh | diff | blob | history |