commit --amend: test specifies authorship but forgets to check
authorFabian Ruch <bafain@gmail.com>
Wed, 30 Jul 2014 09:45:11 +0000 (11:45 +0200)
committerJunio C Hamano <gitster@pobox.com>
Wed, 30 Jul 2014 18:32:12 +0000 (11:32 -0700)
The test case "--amend option copies authorship" specifies that the
git-commit option `--amend` uses the authorship of the replaced
commit for the new commit. Add the omitted check that this property
actually holds.

Signed-off-by: Fabian Ruch <bafain@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/t7509-commit.sh
index b61fd3c3c4c949785a595dac0fdcc48f4f7faf93..9ac794052df6ac925733ff8a8852e9759bb0baf0 100755 (executable)
@@ -77,6 +77,7 @@ test_expect_success '--amend option copies authorship' '
        git commit -a --amend -m "amend test" &&
        author_header Initial >expect &&
        author_header HEAD >actual &&
+       test_cmp expect actual &&
 
        echo "amend test" >expect &&
        message_body HEAD >actual &&