path: root/
diff options
authorJunio C Hamano <>2014-01-29 23:08:05 (GMT)
committerJunio C Hamano <>2014-02-25 20:53:40 (GMT)
commit4b14ec878a206e87520378b9e1e43aef469bc646 (patch)
treee9584c717e1dc3644e3f91f5b600da28b476b2fd /
parentdc2eacc58c1118ad68b9d6973033a60b6ed9be1f (diff)
request-pull: pick up tag message as before
The previous two steps were meant to stop updating the explicit refname the user gave to the command to a different ref that points at it. Most notably, we no longer substitute a branch name the user used with a name of the tag that points at the commit at the tip of the branch (it still can be done with "local-branch:remote-tag"). However, they also lost the code that included the message in a tag when the user _did_ ask the tag to be pulled. Resurrect it. Signed-off-by: Junio C Hamano <>
Diffstat (limited to '')
1 files changed, 8 insertions, 0 deletions
diff --git a/ b/
index c8ab0e9..93b4135 100755
--- a/
+++ b/
@@ -132,6 +132,14 @@ for you to fetch changes up to %H:
----------------------------------------------------------------' $headrev &&
+if test $(git cat-file -t "$head") = tag
+ git cat-file tag "$head" |
+ sed -n -e '1,/^$/d' -e '/^-----BEGIN PGP /q' -e p
+ echo
+ echo "----------------------------------------------------------------"
+fi &&
if test -n "$branch_name"
echo "(from the branch description for $branch_name local branch)"