diff --git a/subcmds/selfupdate.py b/subcmds/selfupdate.py index 4f46a129..46aa3a19 100644 --- a/subcmds/selfupdate.py +++ b/subcmds/selfupdate.py @@ -55,6 +55,7 @@ need to be performed by an end-user. print >>sys.stderr, "error: can't update repo" sys.exit(1) + rp.bare_git.gc('--auto') _PostRepoFetch(rp, no_repo_verify = opt.no_repo_verify, verbose = True) diff --git a/subcmds/sync.py b/subcmds/sync.py index afd44dab..1537c9a2 100644 --- a/subcmds/sync.py +++ b/subcmds/sync.py @@ -118,6 +118,8 @@ later is required to fix a server side protocol bug. print >>sys.stderr, 'error: Cannot fetch %s' % project.name sys.exit(1) pm.end() + for project in projects: + project.bare_git.gc('--auto') return fetched def UpdateProjectList(self):