summaryrefslogtreecommitdiff
path: root/git-parse-remote.sh
diff options
context:
space:
mode:
authorUwe Kleine-König <u.kleine-koenig@pengutronix.de>2011-03-01 09:21:37 (GMT)
committerJunio C Hamano <gitster@pobox.com>2011-03-02 20:26:58 (GMT)
commit1a92777504afc09e071d7d828e084e6a4dadfce2 (patch)
tree81478998977e632cbb878a87401e9380bc0b837f /git-parse-remote.sh
parent45781adb9a89c0c47f61ccf8062be26b86a38a54 (diff)
downloadgit-1a92777504afc09e071d7d828e084e6a4dadfce2.zip
git-1a92777504afc09e071d7d828e084e6a4dadfce2.tar.gz
git-1a92777504afc09e071d7d828e084e6a4dadfce2.tar.bz2
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>
Diffstat (limited to 'git-parse-remote.sh')
-rw-r--r--git-parse-remote.sh4
1 files changed, 0 insertions, 4 deletions
diff --git a/git-parse-remote.sh b/git-parse-remote.sh
index 0ab1192..e7013f7 100644
--- a/git-parse-remote.sh
+++ b/git-parse-remote.sh
@@ -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")