Merged updates from trunk into stable branch
[feedcatcher.git] / vendor / rails / railties / lib / rails_generator / generators / applications / app / scm / git.rb
1 module Rails
2 class Git < Scm
3 def self.clone(repos, branch=nil)
4 `git clone #{repos}`
5
6 if branch
7 `cd #{repos.split('/').last}/`
8 `git checkout #{branch}`
9 end
10 end
11
12 def self.run(command)
13 `git #{command}`
14 end
15 end
16 end