b599ffd by Johan Sørensen at 2008-02-23 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
899296a by Simon Hausmann at 2008-11-28 8
ENV["PATH"] = "/usr/local/bin/:/opt/local/bin:#{ENV["PATH"]}"
9
b599ffd by Johan Sørensen at 2008-02-23 10
Dir["#{GitoriousConfig["repository_base_path"]}/**/*.git"].each do |repo_path|
11
  p repo_path
bbcaecb by David Aguilar at 2008-12-30 12
  p `cd '#{repo_path}'; git gc`
b599ffd by Johan Sørensen at 2008-02-23 13
  puts
bbcaecb by David Aguilar at 2008-12-30 14
end