summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFabian Ruch <bafain@gmail.com>2014-07-30 11:45:11 +0200
committerJunio C Hamano <gitster@pobox.com>2014-07-30 11:32:12 -0700
commitd8b396e17ecfe28b39b5f4470f791c434cce40ec (patch)
treeb80fc7c8c24f6be65fb755e137e26af996b3ac79
parentd299e9e550c1bf8640907fdba1f03cc585ee71df (diff)
downloadgit-d8b396e17ecfe28b39b5f4470f791c434cce40ec.tar.gz
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>
-rwxr-xr-xt/t7509-commit.sh1
1 files changed, 1 insertions, 0 deletions
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 &&