# Adding plugins to svn

**URL:** <https://www.ruby-forum.com/t/adding-plugins-to-svn/124061>\
**Category:** Rails\
**Created:** [December 24, 2007, 7:01am UTC](https://www.ruby-forum.com/t/adding-plugins-to-svn/124061 "2007-12-24T07:01:55Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![chrisolsen](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/c6cbf5/32.png) [@chrisolsen](https://www.ruby-forum.com/u/chrisolsen)\
**Post date:** [December 24, 2007, 7:01am UTC](https://www.ruby-forum.com/t/adding-plugins-to-svn/124061/1 "2007-12-24T07:01:55Z")

</div>

Since many of the plugins that I have are from an svn repository and  
contain .svn folders, what is the proper way to add the plugins to my  
svn repository without getting errors thrown?

Thanks.

---

<div class="post-metadata">

**Author:** ![chrisolsen](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/c6cbf5/32.png) [@chrisolsen](https://www.ruby-forum.com/u/chrisolsen)\
**Post date:** [December 24, 2007, 7:11am UTC](https://www.ruby-forum.com/t/adding-plugins-to-svn/124061/2 "2007-12-24T07:11:08Z")

</div>

You can clean out the svn folders like this:

find . -name “.svn” -exec rm -rf {} ;

Or, if you want to keep them as an SVN working copy, you can set them  
up as svn:externals: [Externals Definitions](http://svnbook.red-bean.com/en/1.0/ch07s03.html)

OR! You can use Piston:  
[http://www.rubyinside.com/advent2006/12-piston.html](http://www.rubyinside.com/advent2006/12-piston.html)

–Jeremy

On Dec 24, 2007 1:01 AM, Chris O. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
wrote:

> 

–  
[http://www.jeremymcanally.com/](http://www.jeremymcanally.com/)

My books:  
Ruby in Practice

> **[Ruby in Practice](https://www.manning.com/books/ruby-in-practice)**
>
> Like Ruby itself, Ruby in Practice will make you more productive. The book shows you practical techniques and strategies for small projects and large-scale environments. A cookbook-style reference, it gives you concrete examples of systems...

My free Ruby e-book

> **[Site not found · DreamHost](http://www.humblelittlerubybook.com/)**
>
> The owner of this domain has not yet uploaded their website.

My blogs:

> **[Site not found · DreamHost](http://www.mrneighborly.com/)**
>
> The owner of this domain has not yet uploaded their website.

[http://www.rubyinpractice.com/](http://www.rubyinpractice.com/)

---

<div class="post-metadata">

**Author:** ![chrisolsen](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/c6cbf5/32.png) [@chrisolsen](https://www.ruby-forum.com/u/chrisolsen)\
**Post date:** [December 24, 2007, 7:22am UTC](https://www.ruby-forum.com/t/adding-plugins-to-svn/124061/3 "2007-12-24T07:22:33Z")

</div>

Jeremy McAnally wrote:

> You can clean out the svn folders like this:
> 
> find . -name “.svn” -exec rm -rf {} ;
> 
> Or, if you want to keep them as an SVN working copy, you can set them  
> up as svn:externals: [Externals Definitions](http://svnbook.red-bean.com/en/1.0/ch07s03.html)
> 
> OR! You can use Piston:  
> [Managing Rails Plugins with Piston](http://www.rubyinside.com/advent2006/12-piston.html)
> 
> –Jeremy

Thanks for the quick reply. For now I will just remove the .svn files.

BTW Kudos on your Humble Little Ruby Rook. I have recommended it a  
couple times to friends looking to learn ruby.

---

<div class="post-metadata">

**Author:** ![chrisolsen](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/c6cbf5/32.png) [@chrisolsen](https://www.ruby-forum.com/u/chrisolsen)\
**Post date:** [December 24, 2007, 8:34am UTC](https://www.ruby-forum.com/t/adding-plugins-to-svn/124061/4 "2007-12-24T08:34:07Z")

</div>

I think the proper way is `script/plugin install -x <name/url>`.  
That does not copy/export the plugins but puts them into the  
“svn:externals” property of vendor/plugins

---

<div class="post-metadata">

**Author:** ![chrisolsen](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/c6cbf5/32.png) [@chrisolsen](https://www.ruby-forum.com/u/chrisolsen)\
**Post date:** [December 24, 2007, 8:45am UTC](https://www.ruby-forum.com/t/adding-plugins-to-svn/124061/5 "2007-12-24T08:45:48Z")

</div>

On Mon, 24 Dec 2007 07:01:55 +0100, Chris O. wrote:

> Since many of the plugins that I have are from an svn repository and  
> contain .svn folders, what is the proper way to add the plugins to my  
> svn repository without getting errors thrown?

I use svn too and curious about your question. Could you make the  
question a bit more concrete?

thanks,

Thufir
