Skip to content

Commit

Permalink
Merge branch 'mh/rebase-skip-hard'
Browse files Browse the repository at this point in the history
* mh/rebase-skip-hard:
  Do git reset --hard HEAD when using git rebase --skip
  • Loading branch information
Junio C Hamano committed Nov 25, 2007
2 parents faf8280 + fb6e4e1 commit 25f3cd5
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 1 addition & 0 deletions git-rebase.sh
Original file line number Diff line number Diff line change
Expand Up @@ -179,6 +179,7 @@ do
exit
;;
--skip)
git reset --hard HEAD || exit $?
if test -d "$dotest"
then
git rerere clear
Expand Down
2 changes: 0 additions & 2 deletions t/t3403-rebase-skip.sh
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@ test_expect_failure 'rebase with git am -3 (default)' '
'

test_expect_success 'rebase --skip with am -3' '
git reset --hard HEAD &&
git rebase --skip
'

Expand All @@ -57,7 +56,6 @@ test_expect_success 'checkout skip-merge' 'git checkout -f skip-merge'
test_expect_failure 'rebase with --merge' 'git rebase --merge master'

test_expect_success 'rebase --skip with --merge' '
git reset --hard HEAD &&
git rebase --skip
'

Expand Down

0 comments on commit 25f3cd5

Please sign in to comment.