Skip to content

Commit

Permalink
Merge branch 'mz/maint-rebase-X-fix' into maint
Browse files Browse the repository at this point in the history
* mz/maint-rebase-X-fix:
  t3402: test "rebase -s<strategy> -X<opt>"
  • Loading branch information
Junio C Hamano committed Nov 17, 2010
2 parents 11fe3f7 + 71fc224 commit 5d268ed
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions t/t3402-rebase-merge.sh
Original file line number Diff line number Diff line change
Expand Up @@ -117,4 +117,25 @@ test_expect_success 'picking rebase' '
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

0 comments on commit 5d268ed

Please sign in to comment.