summaryrefslogtreecommitdiff
path: root/git-am.sh
diff options
context:
space:
mode:
authorMichael Stefaniuc <mstefani@redhat.com>2008-01-04 19:59:26 +0100
committerJunio C Hamano <gitster@pobox.com>2008-01-05 00:07:57 -0800
commite0cd252eb0ba6453acd64762625b004aa4cc162b (patch)
tree447f4746b90d1f77338ceb6cab740693008f26b1 /git-am.sh
parente9b20943b7713ed7c051621f97e12713ccf98e1f (diff)
downloadgit-e0cd252eb0ba6453acd64762625b004aa4cc162b.tar.gz
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 <mstefani@redhat.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'git-am.sh')
-rwxr-xr-xgit-am.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/git-am.sh b/git-am.sh
index 65c634f77a..5f0f241ad0 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"