path: root/t/
diff options
authorJunio C Hamano <>2014-02-25 21:44:46 (GMT)
committerJunio C Hamano <>2014-02-25 21:45:38 (GMT)
commit5aae66bd998429959d89c5bedf0bd8175a2b3f33 (patch)
tree7ea854d749537e03fc2bae572ad87dd0d41f1d9d /t/
parent28ad685f70f93133f2c872e4b1ea2a8f87eaebb5 (diff)
request-pull: resurrect "pretty refname" feature
When asking to fetch/pull a branch whose name is B or a tag whose name is T, we used to show the command to run as: git pull $URL B git pull $URL tags/T even when B and T were spelled in a more qualified way in order to disambiguate, e.g. heads/B or refs/tags/T, but the recent update lost this feature. Resurrect it. Signed-off-by: Junio C Hamano <>
Diffstat (limited to 't/')
1 files changed, 7 insertions, 1 deletions
diff --git a/t/ b/t/
index 2622057..75d6b38 100755
--- a/t/
+++ b/t/
@@ -216,8 +216,14 @@ test_expect_success 'pull request format' '
git request-pull initial "$downstream_url" tags/full >../request
) &&
<request sed -nf fuzz.sed >request.fuzzy &&
- test_i18ncmp expect request.fuzzy
+ test_i18ncmp expect request.fuzzy &&
+ (
+ cd local &&
+ git request-pull initial "$downstream_url" tags/full:refs/tags/full
+ ) >request &&
+ sed -nf fuzz.sed <request >request.fuzzy &&
+ test_i18ncmp expect request.fuzzy
test_expect_success 'request-pull ignores OPTIONS_KEEPDASHDASH poison' '