summaryrefslogtreecommitdiffstats
path: root/git-request-pull.sh
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2014-05-19 19:35:36 +0200
committerJunio C Hamano <gitster@pobox.com>2014-05-19 19:35:36 +0200
commit7dde48ea7aa18de1174628e21510967b0ad71d7c (patch)
treeabbf393ca977fa7c417017d6bf35c33baf731e7d /git-request-pull.sh
parentMerge branch 'jl/use-vsatisfy-correctly-for-2.0' (diff)
parentrequest-pull: resurrect for-linus -> tags/for-linus DWIM (diff)
downloadgit-7dde48ea7aa18de1174628e21510967b0ad71d7c.tar.xz
git-7dde48ea7aa18de1174628e21510967b0ad71d7c.zip
Merge branch 'lt/request-pull'
* lt/request-pull: request-pull: resurrect for-linus -> tags/for-linus DWIM
Diffstat (limited to 'git-request-pull.sh')
-rwxr-xr-xgit-request-pull.sh6
1 files changed, 6 insertions, 0 deletions
diff --git a/git-request-pull.sh b/git-request-pull.sh
index 5c15997523..d5500fde46 100755
--- a/git-request-pull.sh
+++ b/git-request-pull.sh
@@ -119,6 +119,12 @@ then
status=1
fi
+# Special case: turn "for_linus" to "tags/for_linus" when it is correct
+if test "$ref" = "refs/tags/$pretty_remote"
+then
+ pretty_remote=tags/$pretty_remote
+fi
+
url=$(git ls-remote --get-url "$url")
git show -s --format='The following changes since commit %H: