From: Fabian Ruch Date: Wed, 30 Jul 2014 09:45:11 +0000 (+0200) Subject: commit --amend: test specifies authorship but forgets to check X-Git-Tag: v2.0.4~1 X-Git-Url: https://git.lorimer.id.au/gitweb.git/diff_plain/d8b396e17ecfe28b39b5f4470f791c434cce40ec 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 Signed-off-by: Junio C Hamano --- diff --git a/t/t7509-commit.sh b/t/t7509-commit.sh index b61fd3c3c4..9ac794052d 100755 --- a/t/t7509-commit.sh +++ b/t/t7509-commit.sh @@ -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 &&