request-pull: really favor a matching tag
commit682853e687ff0106bea25bdb5e9d60d9657cecb3
authorJunio C Hamano <gitster@pobox.com>
Fri, 1 Jun 2012 19:38:19 +0000 (1 12:38 -0700)
committerJunio C Hamano <gitster@pobox.com>
Fri, 1 Jun 2012 19:38:19 +0000 (1 12:38 -0700)
treefac9331c2b5fd3aa6727f098ce7ca491a8b6a148
parent26e5c5d09334d157bd04f794f16f6e338d50c752
request-pull: really favor a matching tag

After tagging the tip of "dev" branch with a "for-linus" tag and
pushing both out, running

$ git request-pull $url $last_release dev

would produce an output asking the 'dev' branch of $url to be
pulled, because that is what the user asked the message to say.

We already detect this situation locally and include the contents of
the tag in the output; if the $url has that tag, favor that tag
(i.e. "for-linus") in the generated message over the branch name the
user gave us (i.e. "dev") from the command line, to make the output
look more consistent.

Signed-off-by: Junio C Hamano <gitster@pobox.com>
git-request-pull.sh