diff options
author | Fabian Ruch <bafain@gmail.com> | 2014-07-30 11:45:11 +0200 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2014-07-30 11:32:12 -0700 |
commit | d8b396e17ecfe28b39b5f4470f791c434cce40ec (patch) | |
tree | b80fc7c8c24f6be65fb755e137e26af996b3ac79 /t | |
parent | d299e9e550c1bf8640907fdba1f03cc585ee71df (diff) | |
download | git-d8b396e17ecfe28b39b5f4470f791c434cce40ec.tar.gz git-d8b396e17ecfe28b39b5f4470f791c434cce40ec.tar.xz |
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>
Diffstat (limited to 't')
-rwxr-xr-x | t/t7509-commit.sh | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/t/t7509-commit.sh b/t/t7509-commit.sh index b61fd3c3c..9ac794052 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 && |