author | Ilari Liusvaara <ilari.liusvaara@elisanet.fi> | |
Sat, 9 Jan 2010 17:28:12 +0000 (19:28 +0200) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Sun, 10 Jan 2010 06:38:49 +0000 (22:38 -0800) | ||
commit | 27a557a9ff9273ad47aa29c52e9903cf6405f7f7 | |
tree | ea1bead80a5cbadf90e7a47984bae5746a8962e4 | tree | snapshot |
parent | 28ca0c90080ec933d82b0f7d050ea5fde2816c57 | commit | diff |
Reset possible helper before reusing remote structure
If one had multiple URLs configured for remote with previous one
having forced helper but the subsequent one not, like:
url = foo::bar://baz
url = ssh://example/example.git
Then the subsequent URL is passed to foo helper, which isn't
correct. Fix it to be parsed normally by resetting foreign VCS
name before parsing the URL protocol.
Signed-off-by: Ilari Liusvaara <ilari.liusvaara@elisanet.fi>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
If one had multiple URLs configured for remote with previous one
having forced helper but the subsequent one not, like:
url = foo::bar://baz
url = ssh://example/example.git
Then the subsequent URL is passed to foo helper, which isn't
correct. Fix it to be parsed normally by resetting foreign VCS
name before parsing the URL protocol.
Signed-off-by: Ilari Liusvaara <ilari.liusvaara@elisanet.fi>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
transport.c | diff | blob | history |