From 66ab8fa1cc15ab76b7ccdcaad68f8e57b352245e Mon Sep 17 00:00:00 2001 From: Stephen Haberman Date: Thu, 19 Jun 2008 20:31:29 -0500 Subject: [PATCH] Test the re being on the second line. --- tests/t1000-commit-msg-ticket-hook.sh | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/tests/t1000-commit-msg-ticket-hook.sh b/tests/t1000-commit-msg-ticket-hook.sh index 6a0b591..ffad6f3 100644 --- a/tests/t1000-commit-msg-ticket-hook.sh +++ b/tests/t1000-commit-msg-ticket-hook.sh @@ -31,6 +31,14 @@ test_expect_success 'accepts with re' ' git commit -m "first re #3200" ' +test_expect_success 'accepts with re on the second line' ' + echo "$test_name" > file && + git add file && + echo "line one" > msg + echo "line two re #3200" >> msg + git commit -F msg +' + test_expect_success 'accepts with RE' ' echo "$test_name" > file && git add file && -- 2.39.5