aboutsummaryrefslogtreecommitdiff
path: root/t/t4205-log-pretty-formats.sh
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2014-02-05 14:02:05 -0800
committerJunio C Hamano <gitster@pobox.com>2014-02-05 14:02:05 -0800
commitd11ade701a2451e81a28a4fad35b42a57f273753 (patch)
tree495f2eb4b27b6a5d7b7fa39126e4ed1c4681fb21 /t/t4205-log-pretty-formats.sh
parent28856247e226c9bf84c258797ddb4a233b8acd7b (diff)
parent5e1361ccdbfaf328b5bae1eae29f16ba965c54b1 (diff)
downloadgit-d11ade701a2451e81a28a4fad35b42a57f273753.tar.gz
git-d11ade701a2451e81a28a4fad35b42a57f273753.tar.xz
Merge branch 'bc/log-decoration' into maint
"git log --decorate" did not handle a tag pointed by another tag nicely. * bc/log-decoration: log: properly handle decorations with chained tags
Diffstat (limited to 't/t4205-log-pretty-formats.sh')
-rwxr-xr-xt/t4205-log-pretty-formats.sh15
1 files changed, 15 insertions, 0 deletions
diff --git a/t/t4205-log-pretty-formats.sh b/t/t4205-log-pretty-formats.sh
index fb0004113..2a6278bb3 100755
--- a/t/t4205-log-pretty-formats.sh
+++ b/t/t4205-log-pretty-formats.sh
@@ -310,4 +310,19 @@ EOF
test_cmp expected actual
'
+test_expect_success 'log decoration properly follows tag chain' '
+ git tag -a tag1 -m tag1 &&
+ git tag -a tag2 -m tag2 tag1 &&
+ git tag -d tag1 &&
+ git commit --amend -m shorter &&
+ git log --no-walk --tags --pretty="%H %d" --decorate=full >actual &&
+ cat <<EOF >expected &&
+6a908c10688b2503073c39c9ba26322c73902bb5 (tag: refs/tags/tag2)
+9f716384d92283fb915a4eee5073f030638e05f9 (tag: refs/tags/message-one)
+b87e4cccdb77336ea79d89224737be7ea8e95367 (tag: refs/tags/message-two)
+EOF
+ sort actual >actual1 &&
+ test_cmp expected actual1
+'
+
test_done