Commit b599ffd0eadcb0c7cd1dfe0f8e4af2bfd2784750
- Date: Fri Feb 22 23:33:22 +0000 2008
- Committer: Johan Sørensen (johan@johansorensen.com)
- Author: Johan Sørensen (johan@johansorensen.com)
- Commit SHA1: b599ffd0eadcb0c7cd1dfe0f8e4af2bfd2784750
- Tree SHA1: f1c5ebb5adaa2afa09dc2091f0ff79c803d94948
git-gc housekeeping script
Commit diff
| |   |
| 1 | #!/usr/bin/env ruby |
| 2 | |
| 3 | require "yaml" |
| 4 | |
| 5 | conf_file = File.join(File.dirname(__FILE__), "../config/gitorious.yml") |
| 6 | GitoriousConfig = YAML.load_file(conf_file) |
| 7 | |
| 8 | Dir["#{GitoriousConfig["repository_base_path"]}/**/*.git"].each do |repo_path| |
| 9 | p repo_path |
| 10 | p `cd '#{repo_path}'; git-gc` |
| 11 | puts |
| 12 | end |
| toggle raw diff |
--- /dev/null
+++ b/script/repo_housekeeping
@@ -0,0 +1,12 @@
+#!/usr/bin/env ruby
+
+require "yaml"
+
+conf_file = File.join(File.dirname(__FILE__), "../config/gitorious.yml")
+GitoriousConfig = YAML.load_file(conf_file)
+
+Dir["#{GitoriousConfig["repository_base_path"]}/**/*.git"].each do |repo_path|
+ p repo_path
+ p `cd '#{repo_path}'; git-gc`
+ puts
+end
\ No newline at end of file |