Skip to content
This repository was archived by the owner on Nov 9, 2017. It is now read-only.

Commit 4b14ec8

Browse files
committed
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 <[email protected]>
1 parent dc2eacc commit 4b14ec8

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

git-request-pull.sh

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -132,6 +132,14 @@ for you to fetch changes up to %H:
132132
133133
----------------------------------------------------------------' $headrev &&
134134

135+
if test $(git cat-file -t "$head") = tag
136+
then
137+
git cat-file tag "$head" |
138+
sed -n -e '1,/^$/d' -e '/^-----BEGIN PGP /q' -e p
139+
echo
140+
echo "----------------------------------------------------------------"
141+
fi &&
142+
135143
if test -n "$branch_name"
136144
then
137145
echo "(from the branch description for $branch_name local branch)"

0 commit comments

Comments
 (0)