X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=t%2Ft7502-commit.sh;h=fe94552296bb98ef78dbc51e8b1f7d4a665cf0a4;hb=529f8c6ea6c13d85178d4ed10ed60ed8fd6f6c19;hp=56cd866019dcc871e5dea684f1d879fcf2c1b884;hpb=5e64650d938d7a23b73532b4a68bc6bd08cfd041;p=git.git diff --git a/t/t7502-commit.sh b/t/t7502-commit.sh index 56cd86601..fe9455229 100755 --- a/t/t7502-commit.sh +++ b/t/t7502-commit.sh @@ -258,4 +258,13 @@ test_expect_success 'Hand committing of a redundant merge removes dups' ' ' +test_expect_success 'A single-liner subject with a token plus colon is not a footer' ' + + git reset --hard && + git commit -s -m "hello: kitty" --allow-empty && + git cat-file commit HEAD | sed -e "1,/^$/d" >actual && + test $(wc -l