@@ -14,8 +14,8 @@ It is possible that a merge failure will prevent this process from being
1414completely automatic. You will have to resolve any such merge failure
1515and run git rebase --continue. Another option is to bypass the commit
1616that caused the merge failure with git rebase --skip. To restore the
17- original <branch> and remove the .git/rebase working files, use the command
18- git rebase --abort instead.
17+ original <branch> and remove the .git/rebase-apply working files, use the
18+ command git rebase --abort instead.
1919
2020Note that if <branch> is not specified on the command line, the
2121currently checked out branch is used.
@@ -150,7 +150,7 @@ while test $# != 0
150150do
151151 case " $1 " in
152152 --continue)
153- test -d " $dotest " -o -d " $GIT_DIR " /rebase ||
153+ test -d " $dotest " -o -d " $GIT_DIR " /rebase-apply ||
154154 die " No rebase in progress?"
155155
156156 git diff-files --quiet --ignore-submodules || {
173173 finish_rb_merge
174174 exit
175175 fi
176- head_name=$( cat " $GIT_DIR " /rebase/head-name) &&
177- onto=$( cat " $GIT_DIR " /rebase/onto) &&
178- orig_head=$( cat " $GIT_DIR " /rebase/orig-head) &&
176+ head_name=$( cat " $GIT_DIR " /rebase-apply /head-name) &&
177+ onto=$( cat " $GIT_DIR " /rebase-apply /onto) &&
178+ orig_head=$( cat " $GIT_DIR " /rebase-apply /orig-head) &&
179179 git am --resolved --3way --resolvemsg=" $RESOLVEMSG " &&
180180 move_to_original_branch
181181 exit
182182 ;;
183183 --skip)
184- test -d " $dotest " -o -d " $GIT_DIR " /rebase ||
184+ test -d " $dotest " -o -d " $GIT_DIR " /rebase-apply ||
185185 die " No rebase in progress?"
186186
187187 git reset --hard HEAD || exit $?
201201 finish_rb_merge
202202 exit
203203 fi
204- head_name=$( cat " $GIT_DIR " /rebase/head-name) &&
205- onto=$( cat " $GIT_DIR " /rebase/onto) &&
206- orig_head=$( cat " $GIT_DIR " /rebase/orig-head) &&
204+ head_name=$( cat " $GIT_DIR " /rebase-apply /head-name) &&
205+ onto=$( cat " $GIT_DIR " /rebase-apply /onto) &&
206+ orig_head=$( cat " $GIT_DIR " /rebase-apply /orig-head) &&
207207 git am -3 --skip --resolvemsg=" $RESOLVEMSG " &&
208208 move_to_original_branch
209209 exit
210210 ;;
211211 --abort)
212- test -d " $dotest " -o -d " $GIT_DIR " /rebase ||
212+ test -d " $dotest " -o -d " $GIT_DIR " /rebase-apply ||
213213 die " No rebase in progress?"
214214
215215 git rerere clear
216216 if test -d " $dotest "
217217 then
218218 move_to_original_branch
219219 else
220- dotest=" $GIT_DIR " /rebase
220+ dotest=" $GIT_DIR " /rebase-apply
221221 move_to_original_branch
222222 fi
223223 git reset --hard $( cat " $dotest /orig-head" )
265265 shift
266266done
267267
268- # Make sure we do not have $GIT_DIR/rebase
268+ # Make sure we do not have $GIT_DIR/rebase-apply
269269if test -z " $do_merge "
270270then
271- if mkdir " $GIT_DIR " /rebase
271+ if mkdir " $GIT_DIR " /rebase-apply
272272 then
273- rmdir " $GIT_DIR " /rebase
273+ rmdir " $GIT_DIR " /rebase-apply
274274 else
275275 echo >&2 '
276- It seems that I cannot create a ' " $GIT_DIR " ' /rebase directory, and I wonder if you
277- are in the middle of patch application or another rebase. If that is not
278- the case, please rm -fr ' " $GIT_DIR " ' /rebase and run me again. I am stopping in case
279- you still have something valuable there.'
276+ It seems that I cannot create a ' " $GIT_DIR " ' /rebase-apply directory,
277+ and I wonder if you are in the middle of patch application or another
278+ rebase. If that is not the case, please
279+ rm -fr ' " $GIT_DIR " ' /rebase-apply
280+ and run me again. I am stopping in case you still have something
281+ valuable there.'
280282 exit 1
281283 fi
282284else
@@ -395,10 +397,10 @@ then
395397 git am $git_am_opt --rebasing --resolvemsg=" $RESOLVEMSG " &&
396398 move_to_original_branch
397399 ret=$?
398- test 0 ! = $ret -a -d " $GIT_DIR " /rebase &&
399- echo $head_name > " $GIT_DIR " /rebase/head-name &&
400- echo $onto > " $GIT_DIR " /rebase/onto &&
401- echo $orig_head > " $GIT_DIR " /rebase/orig-head
400+ test 0 ! = $ret -a -d " $GIT_DIR " /rebase-apply &&
401+ echo $head_name > " $GIT_DIR " /rebase-apply /head-name &&
402+ echo $onto > " $GIT_DIR " /rebase-apply /onto &&
403+ echo $orig_head > " $GIT_DIR " /rebase-apply /orig-head
402404 exit $ret
403405fi
404406
0 commit comments