Skip to content
Snippets Groups Projects
Commit 71fc224f authored by Junio C Hamano's avatar Junio C Hamano
Browse files

t3402: test "rebase -s<strategy> -X<opt>"

parent f772c34c
No related branches found
No related tags found
No related merge requests found
...@@ -117,4 +117,25 @@ test_expect_success 'picking rebase' ' ...@@ -117,4 +117,25 @@ test_expect_success 'picking rebase' '
esac esac
' '
test_expect_success 'rebase -s funny -Xopt' '
test_when_finished "rm -fr test-bin funny.was.run" &&
mkdir test-bin &&
cat >test-bin/git-merge-funny <<-EOF &&
#!$SHELL_PATH
case "\$1" in --opt) ;; *) exit 2 ;; esac
shift &&
>funny.was.run &&
exec git merge-recursive "\$@"
EOF
chmod +x test-bin/git-merge-funny &&
git reset --hard &&
git checkout -b test-funny master^ &&
test_commit funny &&
(
PATH=./test-bin:$PATH
git rebase -s funny -Xopt master
) &&
test -f funny.was.run
'
test_done test_done
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment