git-request-pull: open-code the only invocation of get_remote_url

So sh:get_remote_url can go now and git-request-pull
doesn't need to source git-parse-remote. anymore.

Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:
Uwe Kleine-König
2011-03-01 10:21:37 +01:00
committed by Junio C Hamano
parent 45781adb9a
commit 1a92777504
2 changed files with 1 additions and 6 deletions

View File

@ -4,10 +4,6 @@
# this would fail in that case and would issue an error message.
GIT_DIR=$(git rev-parse -q --git-dir) || :;
get_remote_url () {
git ls-remote --get-url "$1"
}
get_default_remote () {
curr_branch=$(git symbolic-ref -q HEAD | sed -e 's|^refs/heads/||')
origin=$(git config --get "branch.$curr_branch.remote")