- Softwrap mode:
- Toggle
Blob of script/repo_housekeeping
(raw blob data)
| 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 |
