From e0cd252eb0ba6453acd64762625b004aa4cc162b Mon Sep 17 00:00:00 2001 From: Michael Stefaniuc Date: Fri, 4 Jan 2008 19:59:26 +0100 Subject: [PATCH] git-am: Run git gc only once and not for every patch. With "too many unreachable loose objects" git gc --auto will always trigger. This clutters the output of git am and thus git rebase. Signed-off-by: Michael Stefaniuc Signed-off-by: Junio C Hamano --- git-am.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/git-am.sh b/git-am.sh index 65c634f77..5f0f241ad 100755 --- a/git-am.sh +++ b/git-am.sh @@ -469,9 +469,9 @@ do "$GIT_DIR"/hooks/post-applypatch fi - git gc --auto - go_next done +git gc --auto + rm -fr "$dotest" -- 2.26.2