Skip to content

Instantly share code, notes, and snippets.

@jdunphy
Created January 25, 2010 19:22
Show Gist options
  • Save jdunphy/286137 to your computer and use it in GitHub Desktop.
Save jdunphy/286137 to your computer and use it in GitHub Desktop.
#!/usr/bin/env ruby
require 'fileutils'
dirs = Dir.glob(ARGV[0] ? "#{ARGV[0]}/*" : '*')
dirs.each do |dir|
if File.directory?(dir)
puts "Updating #{dir}"
FileUtils.cd dir
`git svn fetch`
`git svn rebase`
FileUtils.cd '..'
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment