Skip to content

Commit

Permalink
commit --amend: test specifies authorship but forgets to check
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Fabian Ruch authored and Junio C Hamano committed Jul 30, 2014
1 parent d299e9e commit d8b396e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions t/t7509-commit.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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 &&
Expand Down

0 comments on commit d8b396e

Please sign in to comment.