File tree Expand file tree Collapse file tree 2 files changed +5
-10
lines changed Expand file tree Collapse file tree 2 files changed +5
-10
lines changed Original file line number Diff line number Diff line change @@ -176,13 +176,11 @@ case "$merge_head" in
176
176
?* ' ' ?* )
177
177
if test -z " $orig_head "
178
178
then
179
- echo >&2 " Cannot merge multiple branches into empty head"
180
- exit 1
179
+ die " Cannot merge multiple branches into empty head"
181
180
fi
182
181
if test true = " $rebase "
183
182
then
184
- echo >&2 " Cannot rebase onto multiple branches"
185
- exit 1
183
+ die " Cannot rebase onto multiple branches"
186
184
fi
187
185
;;
188
186
esac
Original file line number Diff line number Diff line change @@ -168,10 +168,8 @@ run_pre_rebase_hook () {
168
168
if test -z " $OK_TO_SKIP_PRE_REBASE " &&
169
169
test -x " $GIT_DIR /hooks/pre-rebase"
170
170
then
171
- " $GIT_DIR /hooks/pre-rebase" ${1+" $@ " } || {
172
- echo >&2 " The pre-rebase hook refused to rebase."
173
- exit 1
174
- }
171
+ " $GIT_DIR /hooks/pre-rebase" ${1+" $@ " } ||
172
+ die " The pre-rebase hook refused to rebase."
175
173
fi
176
174
}
177
175
359
357
360
358
# The tree must be really really clean.
361
359
if ! git update-index --ignore-submodules --refresh; then
362
- echo >&2 " cannot rebase: you have unstaged changes"
363
- exit 1
360
+ die " cannot rebase: you have unstaged changes"
364
361
fi
365
362
diff=$( git diff-index --cached --name-status -r --ignore-submodules HEAD --)
366
363
case " $diff " in
You can’t perform that action at this time.
0 commit comments