]> rtime.felk.cvut.cz Git - git.git/commitdiff
Merge branch 'mm/rebase-continue-freebsd-WB'
authorJunio C Hamano <gitster@pobox.com>
Fri, 20 Sep 2013 19:34:36 +0000 (12:34 -0700)
committerJunio C Hamano <gitster@pobox.com>
Fri, 20 Sep 2013 19:34:37 +0000 (12:34 -0700)
Work around a bug in FreeBSD shell that caused a regression to "git
rebase" in v1.8.4.  May need to be later applied to 'maint'.

* mm/rebase-continue-freebsd-WB:
  rebase: fix run_specific_rebase's use of "return" on FreeBSD

1  2 
git-rebase.sh

diff --cc git-rebase.sh
index 8d7659a22c253b9f9535aee38e3bf0ce380cef75,7ab6434a4ff9e95d639bdf7914e50fb327abe8af..226752fbff62f4f27da95f7d711c898503fd7148
@@@ -147,27 -143,7 +147,27 @@@ move_to_original_branch () 
        esac
  }
  
- run_specific_rebase () {
 +finish_rebase () {
 +      if test -f "$state_dir/autostash"
 +      then
 +              stash_sha1=$(cat "$state_dir/autostash")
 +              if git stash apply $stash_sha1 2>&1 >/dev/null
 +              then
 +                      echo "$(gettext 'Applied autostash.')"
 +              else
 +                      git stash store -m "autostash" -q $stash_sha1 ||
 +                      die "$(eval_gettext "Cannot store \$stash_sha1")"
 +                      gettext 'Applying autostash resulted in conflicts.
 +Your changes are safe in the stash.
 +You can run "git stash pop" or "git stash drop" at any time.
 +'
 +              fi
 +      fi
 +      git gc --auto &&
 +      rm -rf "$state_dir"
 +}
 +
+ run_specific_rebase_internal () {
        if [ "$interactive_rebase" = implied ]; then
                GIT_EDITOR=:
                export GIT_EDITOR