author | Junio C Hamano <gitster@pobox.com> | |
Sun, 25 Nov 2007 00:31:08 +0000 (16:31 -0800) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Sun, 25 Nov 2007 00:31:08 +0000 (16:31 -0800) |
* mh/rebase-skip-hard:
Do git reset --hard HEAD when using git rebase --skip
Do git reset --hard HEAD when using git rebase --skip
1 | 2 | |||
---|---|---|---|---|
git-rebase.sh | patch | | diff1 | | diff2 | | blob | history |
t/t3403-rebase-skip.sh | patch | | diff1 | | diff2 | | blob | history |
diff --cc git-rebase.sh
Simple merge
diff --cc t/t3403-rebase-skip.sh
index 2ee5a00ea794e31946ee3228bc66ecc8e7d3b38f,becabfc33c6e392c9d8fca231a6d2b99b3e80a29..657f68104d52558668119234a0637ac2bca33c0a
+++ b/t/t3403-rebase-skip.sh
'
test_expect_success 'rebase --skip with am -3' '
- git reset --hard HEAD &&
git rebase --skip
'
+
+test_expect_success 'rebase moves back to skip-reference' '
+ test refs/heads/skip-reference = $(git symbolic-ref HEAD) &&
+ git branch post-rebase &&
+ git reset --hard pre-rebase &&
+ ! git rebase master &&
+ echo "hello" > hello &&
+ git add hello &&
+ git rebase --continue &&
+ test refs/heads/skip-reference = $(git symbolic-ref HEAD) &&
+ git reset --hard post-rebase
+'
+
test_expect_success 'checkout skip-merge' 'git checkout -f skip-merge'
test_expect_failure 'rebase with --merge' 'git rebase --merge master'