Merge branch 'mh/rebase-skip-hard'
* mh/rebase-skip-hard: Do git reset --hard HEAD when using git rebase --skip
This commit is contained in:
commit
25f3cd527d
@ -179,6 +179,7 @@ do
|
||||
exit
|
||||
;;
|
||||
--skip)
|
||||
git reset --hard HEAD || exit $?
|
||||
if test -d "$dotest"
|
||||
then
|
||||
git rerere clear
|
||||
|
@ -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
|
||||
'
|
||||
|
||||
@ -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
|
||||
'
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user