summaryrefslogtreecommitdiff
path: root/Assistant/Threads/Committer.hs
diff options
context:
space:
mode:
authorGravatar Joey Hess <joey@kitenet.net>2013-03-03 14:07:13 -0400
committerGravatar Joey Hess <joey@kitenet.net>2013-03-03 14:20:07 -0400
commitcadc1988629458fc861ac27e036417a311ecc255 (patch)
treeeb711869d2fd34f973039b5c2b414192d2c2ddf5 /Assistant/Threads/Committer.hs
parente169082e51bbf0ffc348ae5fcbdd3ce3dcecd6ab (diff)
better prevention of auto repack
Looking through the git sources (documentation is unclear), it seems commit doesn't ever trigger git-gc, mostly fetching and merging seems to. I cannot easily override the setting in all those places, so instead set gc.auto in git config when initializing a repository with the assistant. This does mean that the user cannot set gc.auto=0 and completely avoid repacks, as the assistant does it daily. But, it only does it after there are 100x the default number of loose objects, so this is probably not going to be too annoying.
Diffstat (limited to 'Assistant/Threads/Committer.hs')
-rw-r--r--Assistant/Threads/Committer.hs3
1 files changed, 1 insertions, 2 deletions
diff --git a/Assistant/Threads/Committer.hs b/Assistant/Threads/Committer.hs
index 75976ee3c..99d01b580 100644
--- a/Assistant/Threads/Committer.hs
+++ b/Assistant/Threads/Committer.hs
@@ -82,8 +82,7 @@ commitStaged = do
Right _ -> do
direct <- isDirect
let params = nomessage $ catMaybes
- [ Just $ Param "-c", Just $ Param "gc.auto=0"
- , Just $ Param "commit"
+ [ Just $ Param "commit"
, Just $ Param "--quiet"
{- In indirect mode, avoid running the
- usual git-annex pre-commit hook;