Skip to content

Commit 1c32013

Browse files
sorganovgitster
authored andcommitted
t3506: validate '-m 1 -ff' is now accepted for non-merge commits
Signed-off-by: Sergey Organov <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 4d67b4e commit 1c32013

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

t/t3506-cherry-pick-ff.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -64,10 +64,10 @@ test_expect_success 'merge setup' '
6464
git checkout -b new A
6565
'
6666

67-
test_expect_success 'cherry-pick a non-merge with --ff and -m should fail' '
67+
test_expect_success 'cherry-pick explicit first parent of a non-merge with --ff' '
6868
git reset --hard A -- &&
69-
test_must_fail git cherry-pick --ff -m 1 B &&
70-
git diff --exit-code A --
69+
git cherry-pick --ff -m 1 B &&
70+
git diff --exit-code C --
7171
'
7272

7373
test_expect_success 'cherry pick a merge with --ff but without -m should fail' '

0 commit comments

Comments
 (0)