summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: f772c34)
raw | patch | inline | side by side (parent: f772c34)
author | Junio C Hamano <gitster@pobox.com> | |
Thu, 11 Nov 2010 21:28:57 +0000 (13:28 -0800) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Thu, 11 Nov 2010 21:30:55 +0000 (13:30 -0800) |
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/t3402-rebase-merge.sh | patch | blob | history |
index 2bea65634a1790ceecf824309c1fbb66250f58d5..be8c1d5ef9fd650c128a9fe7126cbcd8db6c5a95 100755 (executable)
--- a/t/t3402-rebase-merge.sh
+++ b/t/t3402-rebase-merge.sh
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