summaryrefslogtreecommitdiff
path: root/git-rebase.sh
diff options
context:
space:
mode:
authorLibravatar Junio C Hamano <gitster@pobox.com>2016-02-05 14:54:13 -0800
committerLibravatar Junio C Hamano <gitster@pobox.com>2016-02-05 14:54:13 -0800
commitb11a3badf2353d69a244348991ff35f823f6b967 (patch)
treec04d274e69d878fe10231f4409984f51e8d775ca /git-rebase.sh
parentMerge branch 'ho/gitweb-squelch-undef-warning' into maint (diff)
parentrebase: ignore failures from "gc --auto" (diff)
downloadtgif-b11a3badf2353d69a244348991ff35f823f6b967.tar.xz
Merge branch 'jk/ok-to-fail-gc-auto-in-rebase' into maint
"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"
Diffstat (limited to 'git-rebase.sh')
-rwxr-xr-xgit-rebase.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/git-rebase.sh b/git-rebase.sh
index af7ba5fd90..cf60c43908 100755
--- a/git-rebase.sh
+++ b/git-rebase.sh
@@ -176,7 +176,7 @@ You can run "git stash pop" or "git stash drop" at any time.
finish_rebase () {
apply_autostash &&
- git gc --auto &&
+ { git gc --auto || true; } &&
rm -rf "$state_dir"
}