Skip to content

Commit

Permalink
git-am: Run git gc only once and not for every patch.
Browse files Browse the repository at this point in the history
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 <mstefani@redhat.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
  • Loading branch information
Michael Stefaniuc authored and Junio C Hamano committed Jan 5, 2008
1 parent e9b2094 commit e0cd252
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions git-am.sh
Original file line number Diff line number Diff line change
Expand Up @@ -469,9 +469,9 @@ do
"$GIT_DIR"/hooks/post-applypatch
fi

git gc --auto

go_next
done

git gc --auto

rm -fr "$dotest"

0 comments on commit e0cd252

Please sign in to comment.