git-request-pull: open-code the only invocation of get_remote_url
[gitweb.git] / git-parse-remote.sh
index 0ab1192f81217fe22715fd351395e3c9b05c86a0..e7013f7ba72a64ab24b991846755b6d6c068b37a 100644 (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")