summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 45781ad)
raw | patch | inline | side by side (parent: 45781ad)
author | Uwe Kleine-König <u.kleine-koenig@pengutronix.de> | |
Tue, 1 Mar 2011 09:21:37 +0000 (10:21 +0100) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Wed, 2 Mar 2011 20:26:58 +0000 (12:26 -0800) |
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>
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>
git-parse-remote.sh | patch | blob | history | |
git-request-pull.sh | patch | blob | history |
diff --git a/git-parse-remote.sh b/git-parse-remote.sh
index 0ab1192f81217fe22715fd351395e3c9b05c86a0..e7013f7ba72a64ab24b991846755b6d6c068b37a 100644 (file)
--- a/git-parse-remote.sh
+++ b/git-parse-remote.sh
# 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")
diff --git a/git-request-pull.sh b/git-request-pull.sh
index 6fdea397ddec3cfa4ff37cdf672e7cced840bb60..fc080cc5e45d02e618e7224c052de1be676f4360 100755 (executable)
--- a/git-request-pull.sh
+++ b/git-request-pull.sh
'
. git-sh-setup
-. git-parse-remote
GIT_PAGER=
export GIT_PAGER
p
q
}")
-url=$(get_remote_url "$url")
+url=$(git ls-remote --get-url "$url")
if [ -z "$branch" ]; then
echo "warn: No branch of $url is at:" >&2
git log --max-count=1 --pretty='tformat:warn: %h: %s' $headrev >&2