Merge branch 'tg/demote-stash-save-in-completion'
[gitweb.git] / t / t7004-tag.sh
index ee093b393d51a2dce6752dcf7bf66cc74a42202a..e3f1e014aaa07444445cbb1d50d8fdc76e1b4aa5 100755 (executable)
@@ -1059,6 +1059,17 @@ test_expect_success GPG \
        git tag -v blanknonlfile-signed-tag
 '
 
+test_expect_success GPG 'signed tag with embedded PGP message' '
+       cat >msg <<-\EOF &&
+       -----BEGIN PGP MESSAGE-----
+
+       this is not a real PGP message
+       -----END PGP MESSAGE-----
+       EOF
+       git tag -s -F msg confusing-pgp-message &&
+       git tag -v confusing-pgp-message
+'
+
 # messages with commented lines for signed tags:
 
 cat >sigcommentsfile <<EOF