summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 37d3e85)
raw | patch | inline | side by side (parent: 37d3e85)
author | Jeff King <peff@peff.net> | |
Wed, 7 Sep 2011 17:43:28 +0000 (13:43 -0400) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Thu, 8 Sep 2011 20:51:15 +0000 (13:51 -0700) |
The current tests don't actually check parsing commit and
tag messages that have both a subject and a body (they just
have single-line messages).
Signed-off-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
tag messages that have both a subject and a body (they just
have single-line messages).
Signed-off-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/t6300-for-each-ref.sh | patch | blob | history |
index 7dc8a510c7f33d048cd3268424298fdda2f8c2bb..6fa4d52740a96898b6274f463defd6a78c74b389 100755 (executable)
--- a/t/t6300-for-each-ref.sh
+++ b/t/t6300-for-each-ref.sh
case "$1" in
head) ref=refs/heads/master ;;
tag) ref=refs/tags/testtag ;;
+ *) ref=$1 ;;
esac
printf '%s\n' "$3" >expected
test_expect_${4:-success} "basic atom: $1 $2" "
'
+test_expect_success 'create tag with subject and body content' '
+ cat >>msg <<-\EOF &&
+ the subject line
+
+ first body line
+ second body line
+ EOF
+ git tag -F msg subject-body
+'
+test_atom refs/tags/subject-body subject 'the subject line'
+test_atom refs/tags/subject-body body 'first body line
+second body line
+'
+test_atom refs/tags/subject-body contents 'the subject line
+
+first body line
+second body line
+'
+
test_done