Permalink
Browse files

Modify Rakefile to work with current dev repo clone URL, rather than …

…hard-coded one.
  • Loading branch information...
1 parent fb619a4 commit a8f1bb560882c6a96267803e120ced2fb7787d70 @glv glv committed with dchelimsky Nov 9, 2009
Showing with 3 additions and 1 deletion.
  1. +3 −1 Rakefile
View
@@ -122,10 +122,12 @@ namespace :git do
desc "git clone all the repos the first time"
task :clone => :make_repos_directory do
+ url_prefix = `git config --get remote.origin.url`[%r{(^.*)/dev\.git}, 1]
+
FileUtils.cd(ReposPath) do
Projects.each do |repo|
unless File.exists?(repo)
- system "git clone git@github.com:rspec/#{repo}.git"
+ system "git clone #{url_prefix}/#{repo}.git"
end
end
end

0 comments on commit a8f1bb5

Please sign in to comment.