Merge branch 'jk/ok-to-fail-gc-auto-in-rebase' into maint
authorJunio C Hamano <gitster@pobox.com>
Fri, 5 Feb 2016 22:54:13 +0000 (14:54 -0800)
committerJunio C Hamano <gitster@pobox.com>
Fri, 5 Feb 2016 22:54:13 +0000 (14:54 -0800)
"git rebase", unlike all other callers of "gc --auto", did not
ignore the exit code from "gc --auto".

* jk/ok-to-fail-gc-auto-in-rebase:
rebase: ignore failures from "gc --auto"

1  2 
git-rebase.sh
diff --combined git-rebase.sh
index af7ba5fd90c3000892ed31893e1812514e4f3773,e8b6144aaee59da3506f6fe0706ba280e958cacc..cf60c4390870ef28cff08b6a173a435d41e2d470
@@@ -14,7 -14,7 +14,7 @@@ git-rebase --continue | --abort | --ski
   Available options are
  v,verbose!         display a diffstat of what changed upstream
  q,quiet!           be quiet. implies --no-stat
 -autostash!         automatically stash/stash pop before and after
 +autostash          automatically stash/stash pop before and after
  fork-point         use 'merge-base --fork-point' to refine upstream
  onto=!             rebase onto given branch instead of upstream
  p,preserve-merges! try to recreate merges instead of ignoring them
@@@ -176,7 -176,7 +176,7 @@@ You can run "git stash pop" or "git sta
  
  finish_rebase () {
        apply_autostash &&
-       git gc --auto &&
+       { git gc --auto || true; } &&
        rm -rf "$state_dir"
  }
  
@@@ -292,9 -292,6 +292,9 @@@ d
        --autostash)
                autostash=true
                ;;
 +      --no-autostash)
 +              autostash=false
 +              ;;
        --verbose)
                verbose=t
                diffstat=t