Merge branch 'lt/request-pull'
authorJunio C Hamano <gitster@pobox.com>
Mon, 19 May 2014 17:35:36 +0000 (10:35 -0700)
committerJunio C Hamano <gitster@pobox.com>
Mon, 19 May 2014 17:35:36 +0000 (10:35 -0700)
* lt/request-pull:
request-pull: resurrect for-linus -> tags/for-linus DWIM

1  2 
git-request-pull.sh
diff --combined git-request-pull.sh
index 5c1599752314696ef1f317095d1786493fbfc935,d6648b253508707ce341a424373f8de8218ee005..d5500fde4658410db477008617730cb5799f310e
@@@ -9,7 -9,6 +9,7 @@@ LONG_USAGE='Summarizes the changes betw
  and includes the given URL in the generated summary.'
  SUBDIRECTORY_OK='Yes'
  OPTIONS_KEEPDASHDASH=
 +OPTIONS_STUCKLONG=
  OPTIONS_SPEC='git request-pull [options] start url [end]
  --
  p    show patch text as well
@@@ -119,6 -118,12 +119,12 @@@ the
        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: