summaryrefslogtreecommitdiff
path: root/t/t7509-commit.sh
diff options
context:
space:
mode:
authorFabian Ruch <bafain@gmail.com>2014-07-30 09:45:11 (GMT)
committerJunio C Hamano <gitster@pobox.com>2014-07-30 18:32:12 (GMT)
commitd8b396e17ecfe28b39b5f4470f791c434cce40ec (patch)
treeb80fc7c8c24f6be65fb755e137e26af996b3ac79 /t/t7509-commit.sh
parentd299e9e550c1bf8640907fdba1f03cc585ee71df (diff)
downloadgit-d8b396e17ecfe28b39b5f4470f791c434cce40ec.zip
git-d8b396e17ecfe28b39b5f4470f791c434cce40ec.tar.gz
git-d8b396e17ecfe28b39b5f4470f791c434cce40ec.tar.bz2
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/t7509-commit.sh')
-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 b61fd3c..9ac7940 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 &&