Skip to content

Commit

Permalink
Merge branch 'mm/rebase-continue-freebsd-WB' into maint
Browse files Browse the repository at this point in the history
* mm/rebase-continue-freebsd-WB:
  rebase: fix run_specific_rebase's use of "return" on FreeBSD
  • Loading branch information
Jonathan Nieder committed Sep 26, 2013
2 parents 76deaab + 99855dd commit 437ce60
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion git-rebase.sh
Original file line number Diff line number Diff line change
Expand Up @@ -167,13 +167,22 @@ You can run "git stash pop" or "git stash drop" at any time.
rm -rf "$state_dir"
}

run_specific_rebase () {
run_specific_rebase_internal () {
if [ "$interactive_rebase" = implied ]; then
GIT_EDITOR=:
export GIT_EDITOR
autosquash=
fi
# On FreeBSD, the shell's "return" returns from the current
# function, not from the current file inclusion.
# run_specific_rebase_internal has the file inclusion as a
# last statement, so POSIX and FreeBSD's return will do the
# same thing.
. git-rebase--$type
}

run_specific_rebase () {
run_specific_rebase_internal
ret=$?
if test $ret -eq 0
then
Expand Down

0 comments on commit 437ce60

Please sign in to comment.