X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=t%2Ft7500-commit.sh;h=8eec0fa9bc7278981b9a16571c588ede0a94d341;hb=c28a17f270a51a4ed5e432e83c0ed962361a37c9;hp=5998baf27b5ad0fb32bf0fd42023d029a65d0e6b;hpb=f7446fc6bbe9c25f7064ba76b2db4dd67691f7d0;p=git.git diff --git a/t/t7500-commit.sh b/t/t7500-commit.sh index 5998baf27..8eec0fa9b 100755 --- a/t/t7500-commit.sh +++ b/t/t7500-commit.sh @@ -183,4 +183,14 @@ test_expect_success 'commit message from stdin' ' commit_msg_is "Log with foo word" ' +test_expect_success 'commit -F overrides -t' ' + ( + cd subdir && + echo "-F log" > f.log && + echo "-t template" > t.template && + git commit --allow-empty -F f.log -t t.template + ) && + commit_msg_is "-F log" +' + test_done