# Cloning ruby's svn repo

**URL:** <https://www.ruby-forum.com/t/cloning-rubys-svn-repo/158019>\
**Category:** Ruby\
**Created:** [January 18, 2009, 1:51am UTC](https://www.ruby-forum.com/t/cloning-rubys-svn-repo/158019 "2009-01-18T01:51:58Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![john\_maclean](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/e8c25b/32.png) [@john\_maclean](https://www.ruby-forum.com/u/john_maclean)\
**Post date:** [January 18, 2009, 1:51am UTC](https://www.ruby-forum.com/t/cloning-rubys-svn-repo/158019/1 "2009-01-18T01:51:58Z")

</div>

from  
[http://blog.emptyway.com/2008/06/19/full-git-clone-of-matz-ruby-subversion-repository/](http://blog.emptyway.com/2008/06/19/full-git-clone-of-matz-ruby-subversion-repository/)

git svn clone --stdlayout [http://svn.ruby-lang.org/repos/ruby](http://svn.ruby-lang.org/repos/ruby)

## This takes a long time and collects 300Mb+ of data. Say I just wanted 1.9 or from 1.8.4 to 1.9, how’s that done?

John M.  
07739 171 531  
MSc (DIC)

Timezone: GMT

---

<div class="post-metadata">

**Author:** ![john\_maclean](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/e8c25b/32.png) [@john\_maclean](https://www.ruby-forum.com/u/john_maclean)\
**Post date:** [January 19, 2009, 1:43pm UTC](https://www.ruby-forum.com/t/cloning-rubys-svn-repo/158019/2 "2009-01-19T13:43:41Z")

</div>

On Sun, Jan 18, 2009 at 01:50, john maclean [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> from [http://blog.emptyway.com/2008/06/19/full-git-clone-of-matz-ruby-subversion-repository/](http://blog.emptyway.com/2008/06/19/full-git-clone-of-matz-ruby-subversion-repository/)
> 
> git svn clone --stdlayout [http://svn.ruby-lang.org/repos/ruby](http://svn.ruby-lang.org/repos/ruby)
> 
> This takes a long time and collects 300Mb+ of data. Say I just wanted  
> 1.9 or from 1.8.4 to 1.9, how’s that done?

Maybe you can just synchronize (however it’s called in git-speak) with  
vladimir’s git repo, he (or his scripts) will do the conversion for  
you.  
Then IIRC, you can specify starting revision in the command.

[git-svn(1)](http://www.kernel.org/pub/software/scm/git/docs/git-svn.html) look for  
–revision. Now the only thing left is to figure out the starting  
revision for 1.8.4.

I don’t known whether is it possible to strip some branches as well.

---

<div class="post-metadata">

**Author:** ![john\_maclean](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/e8c25b/32.png) [@john\_maclean](https://www.ruby-forum.com/u/john_maclean)\
**Post date:** [January 19, 2009, 5:02pm UTC](https://www.ruby-forum.com/t/cloning-rubys-svn-repo/158019/3 "2009-01-19T17:02:02Z")

</div>

2009/1/19 Jano S. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid):

> you.  
> Then IIRC, you can specify starting revision in the command.
> 
> [git-svn(1)](http://www.kernel.org/pub/software/scm/git/docs/git-svn.html) look for  
> –revision. Now the only thing left is to figure out the starting  
> revision for 1.8.4.
> 
> I don’t known whether is it possible to strip some branches as well.

git svn init --prefix=origin/ --stdlayout  
[http://svn.ruby-lang.org/repos.ruby](http://svn.ruby-lang.org/repos.ruby)  
git svn etch --all

gonna play with that a bit to see what it brings

–  
John M.  
07739 171 531  
MSc (DIC)

Timezone: GMT
