Skip to content

Commit

Permalink
keep rails project root so rake clobber won't clobber it
Browse files Browse the repository at this point in the history
  • Loading branch information
dchelimsky committed Jan 22, 2010
1 parent 920b90f commit 122d7c4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
tmp
rails
6 changes: 3 additions & 3 deletions Rakefile
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
desc 'checkout rails'
task :get_rails do
if File.directory?('./tmp/rails')
sh "cd ./tmp/rails && git pull"
if File.directory?('./rails')
sh "cd ./rails && git pull"
else
mkdir_p "tmp"
sh "cd ./tmp && git clone git://github.com/rails/rails --depth 0"
sh "git clone git://github.com/rails/rails --depth 0"
end
end

Expand Down

0 comments on commit 122d7c4

Please sign in to comment.