Skip to content
Browse files

Ensure script/plugin doesn't show error message when svn externals ar…

…e not there
  • Loading branch information...
1 parent 11f53db commit 93b98cb841a9b3224d0289a6aa65b2b76764fdf8 @lifo lifo committed Mar 18, 2009
Showing with 7 additions and 4 deletions.
  1. +7 −4 railties/lib/commands/plugin.rb
View
11 railties/lib/commands/plugin.rb
@@ -169,10 +169,13 @@ def uninstall
else
puts "Plugin doesn't exist: #{path}"
end
- # clean up svn:externals
- externals = rails_env.externals
- externals.reject!{|n,u| name == n or name == u}
- rails_env.externals = externals
+
+ if rails_env.use_externals?
+ # clean up svn:externals
+ externals = rails_env.externals
+ externals.reject!{|n,u| name == n or name == u}
+ rails_env.externals = externals
+ end
end
def info

0 comments on commit 93b98cb

Please sign in to comment.
Something went wrong with that request. Please try again.