Code

for-each-ref: handle multiline subjects like --pretty
[git.git] / t / t6300-for-each-ref.sh
index 6fa4d52740a96898b6274f463defd6a78c74b389..0c9ff96dbed61807483b44358cb9f97a817c57de 100755 (executable)
@@ -379,4 +379,25 @@ first body line
 second body line
 '
 
+test_expect_success 'create tag with multiline subject' '
+       cat >msg <<-\EOF &&
+               first subject line
+               second subject line
+
+               first body line
+               second body line
+       EOF
+       git tag -F msg multiline
+'
+test_atom refs/tags/multiline subject 'first subject line second subject line'
+test_atom refs/tags/multiline body 'first body line
+second body line
+'
+test_atom refs/tags/multiline contents 'first subject line
+second subject line
+
+first body line
+second body line
+'
+
 test_done