commit --amend: test specifies authorship but forgets to check
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>
Fabian Ruch committed
Jul 30, 2014 at 11:45 UTC
d8b396e17ecfe28b39b5f4470f791c434cce40ec
1 file changed
+1
t/t7509-commit.sh
+1
@@ -77,6 +77,7 @@ test_expect_success '--amend option copies authorship' '
77
git commit -a --amend -m "amend test" &&
78
author_header Initial >expect &&
79
author_header HEAD >actual &&
80
+ test_cmp expect actual &&
81
82
echo "amend test" >expect &&
83
message_body HEAD >actual &&