File tree Expand file tree Collapse file tree 1 file changed +19
-10
lines changed
Expand file tree Collapse file tree 1 file changed +19
-10
lines changed Original file line number Diff line number Diff line change 5252 HAS_HEAD=
5353fi
5454
55+ cmdline=" git am"
56+ if test ' ' ! = " $interactive "
57+ then
58+ cmdline=" $cmdline -i"
59+ fi
60+ if test ' ' ! = " $threeway "
61+ then
62+ cmdline=" $cmdline -3"
63+ fi
64+
5565sq () {
5666 git rev-parse --sq-quote " $@ "
5767}
@@ -66,15 +76,6 @@ stop_here_user_resolve () {
6676 printf ' %s\n' " $resolvemsg "
6777 stop_here $1
6878 fi
69- cmdline=" git am"
70- if test ' ' ! = " $interactive "
71- then
72- cmdline=" $cmdline -i"
73- fi
74- if test ' ' ! = " $threeway "
75- then
76- cmdline=" $cmdline -3"
77- fi
7879 echo " When you have resolved this problem run \" $cmdline --resolved\" ."
7980 echo " If you would prefer to skip this patch, instead run \" $cmdline --skip\" ."
8081 echo " To restore the original branch and stop patching run \" $cmdline --abort\" ."
591592
592593 test -s " $dotest /patch" || {
593594 echo " Patch is empty. Was it split wrong?"
595+ echo " If you would prefer to skip this patch, instead run \" $cmdline --skip\" ."
596+ echo " To restore the original branch and stop patching run \" $cmdline --abort\" ."
594597 stop_here $this
595598 }
596599 rm -f " $dotest /original-commit"
690693 else
691694 action=yes
692695 fi
693- FIRSTLINE=$( sed 1q " $dotest /final-commit" )
696+
697+ if test -f " $dotest /final-commit"
698+ then
699+ FIRSTLINE=$( sed 1q " $dotest /final-commit" )
700+ else
701+ FIRSTLINE=" "
702+ fi
694703
695704 if test $action = skip
696705 then
You can’t perform that action at this time.
0 commit comments