Implement a more conservative way of running git-gc
authorJohan Sørensen <johan@johansorensen.com>
Mon, 14 Sep 2009 09:02:54 +0000 (11:02 +0200)
committerJohan Sørensen <johan@johansorensen.com>
Mon, 14 Sep 2009 10:14:34 +0000 (12:14 +0200)
commit2bf29ca9a64808712bc00e3cc0f663715d60cc81
tree91ff7a05b82d63f5ccdb74d478dd4177d4c0ec50
parentf94aefb6b642c68c8a803d3e87e4a1f6c645ffed
Implement a more conservative way of running git-gc

Add a Repository#last_gc_at timestamp and only run on recently pushed
to repositories. Also resurrect script/repo_housekeeping to be used
again
app/models/repository.rb
db/migrate/20090914075300_add_last_gc_at_to_repositories.rb [new file with mode: 0644]
script/repo_housekeeping
test/unit/repository_test.rb