This file looks large and may slow your browser down if we attempt
to syntax highlight it, so we are showing it without any
pretty colors.
Highlight
it anyway.
| 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 |
ENV["PATH"] = "/usr/local/bin/:/opt/local/bin:#{ENV["PATH"]}" |
| 9 |
|
| 10 |
Dir["#{GitoriousConfig["repository_base_path"]}/**/*.git"].each do |repo_path| |
| 11 |
p repo_path |
| 12 |
p `cd '#{repo_path}'; git gc` |
| 13 |
puts |
| 14 |
end |