Skip to content

Commit d8b396e

Browse files
bafaingitster
authored andcommitted
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 <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent d299e9e commit d8b396e

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

t/t7509-commit.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,7 @@ test_expect_success '--amend option copies authorship' '
7777
git commit -a --amend -m "amend test" &&
7878
author_header Initial >expect &&
7979
author_header HEAD >actual &&
80+
test_cmp expect actual &&
8081
8182
echo "amend test" >expect &&
8283
message_body HEAD >actual &&

0 commit comments

Comments
 (0)