assistant: Prevent automatic commits from causing git-gc runs, as that can make things quite slow. Instead, git-gc --auto is run once a day. (This can be disabled by the usual gc.auto=0 setting.)

This commit is contained in:
Joey Hess 2013-03-03 13:39:57 -04:00
parent 0c13d3065e
commit 6dea43831e
3 changed files with 12 additions and 1 deletions

View file

@ -82,7 +82,8 @@ commitStaged = do
Right _ -> do
direct <- isDirect
let params = nomessage $ catMaybes
[ Just $ Param "commit"
[ Just $ Param "-c", Just $ Param "gc.auto=0"
, Just $ Param "commit"
, Just $ Param "--quiet"
{- In indirect mode, avoid running the
- usual git-annex pre-commit hook;