diff options
author | Pratik Naik <pratiknaik@gmail.com> | 2009-03-18 18:39:31 +0000 |
---|---|---|
committer | Pratik Naik <pratiknaik@gmail.com> | 2009-03-18 18:39:56 +0000 |
commit | 93b98cb841a9b3224d0289a6aa65b2b76764fdf8 (patch) | |
tree | d55b33a1c37283c2b0641a76bfc25a70a13445f3 | |
parent | 11f53db2167e5a199ac31c427dd45dd2362bf32a (diff) | |
download | rails-93b98cb841a9b3224d0289a6aa65b2b76764fdf8.tar.gz rails-93b98cb841a9b3224d0289a6aa65b2b76764fdf8.tar.bz2 rails-93b98cb841a9b3224d0289a6aa65b2b76764fdf8.zip |
Ensure script/plugin doesn't show error message when svn externals are not there
-rw-r--r-- | railties/lib/commands/plugin.rb | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/railties/lib/commands/plugin.rb b/railties/lib/commands/plugin.rb index c6c9892fae..3d76bcc73f 100644 --- a/railties/lib/commands/plugin.rb +++ b/railties/lib/commands/plugin.rb @@ -169,10 +169,13 @@ class Plugin 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 |