author | Uwe Kleine-König <u.kleine-koenig@pengutronix.de> | |
Tue, 1 Mar 2011 09:21:36 +0000 (10:21 +0100) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Wed, 2 Mar 2011 20:26:53 +0000 (12:26 -0800) | ||
commit | 45781adb9a89c0c47f61ccf8062be26b86a38a54 | |
tree | 997eb4ee64dfa2af2dcbdf8e408fb3beb796f2ac | tree | snapshot |
parent | 7ed863a85a6ce2c4ac4476848310b8f917ab41f9 | commit | diff |
get_remote_url(): use the same data source as ls-remote to get remote urls
The formerly implemented algorithm behaved differently to
remote.c:remote_get() at least for remotes that contain a slash. While the
former just assumes a/b is a path the latter checks the config for
remote."a/b" first which is more reasonable.
This removes the last user of git-parse-remote.sh:get_data_source(), so
this function is removed.
Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
The formerly implemented algorithm behaved differently to
remote.c:remote_get() at least for remotes that contain a slash. While the
former just assumes a/b is a path the latter checks the config for
remote."a/b" first which is more reasonable.
This removes the last user of git-parse-remote.sh:get_data_source(), so
this function is removed.
Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/ls-remote.c | diff | blob | history | |
git-parse-remote.sh | diff | blob | history |