Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

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

…e not there
  • Loading branch information...
commit 93b98cb841a9b3224d0289a6aa65b2b76764fdf8 1 parent 11f53db
@lifo lifo authored
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
Please sign in to comment.
Something went wrong with that request. Please try again.