3 # Copyright (c) 2006 Eric Wong
6 test_description='git rebase --merge --skip tests'
10 # we assume the default git-am -3 --skip strategy is tested independently
13 if test "$no_python"; then
14 echo "Skipping: no python => no recursive merge"
19 test_expect_success setup '
22 git commit -m "hello" &&
23 git branch skip-reference &&
25 echo world >> hello &&
26 git commit -a -m "hello world" &&
27 echo goodbye >> hello &&
28 git commit -a -m "goodbye" &&
30 git checkout -f skip-reference &&
32 git commit -a -m "we should skip this" &&
35 git commit -m "this should not be skipped" &&
36 git branch pre-rebase skip-reference &&
37 git branch skip-merge skip-reference
40 test_expect_failure 'rebase with git am -3 (default)' '
44 test_expect_success 'rebase --skip with am -3' '
45 git reset --hard HEAD &&
48 test_expect_success 'checkout skip-merge' 'git checkout -f skip-merge'
50 test_expect_failure 'rebase with --merge' 'git rebase --merge master'
52 test_expect_success 'rebase --skip with --merge' '
53 git reset --hard HEAD &&
57 test_expect_success 'merge and reference trees equal' \
58 'test -z "`git-diff-tree skip-merge skip-reference`"'
60 test_debug 'gitk --all & sleep 1'