summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLibravatar Michael Stefaniuc <mstefani@redhat.com>2008-01-04 19:59:26 +0100
committerLibravatar Junio C Hamano <gitster@pobox.com>2008-01-05 00:07:57 -0800
commite0cd252eb0ba6453acd64762625b004aa4cc162b (patch)
tree447f4746b90d1f77338ceb6cab740693008f26b1
parentt/t3800: do not use a temporary file to hold expected result. (diff)
downloadtgif-e0cd252eb0ba6453acd64762625b004aa4cc162b.tar.xz
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>
-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"