Skip to content

Instantly share code, notes, and snippets.

@ryenus
Created March 14, 2012 18:24
Show Gist options
  • Save ryenus/2038414 to your computer and use it in GitHub Desktop.
Save ryenus/2038414 to your computer and use it in GitHub Desktop.
local .git/config for http://rjb.rubyforge.org/svn
[core]
repositoryformatversion = 0
bare = false
logallrefupdates = true
ignorecase = true
[svn-remote "svn"]
url = http://rjb.rubyforge.org/svn
fetch = trunk:refs/remotes/trunk
tags = /{1.1.1,1.1.2,1.1.3,1.1.4,1.1.5,1.1.6,1.1.7,1.1.8,rjb-1.1.9,1.2.0,1.2.1,1.2.2,1.2.3,1.2.4,1.2.5,rjb-1.2.6,1.2.7,1.2.8,1.2.9,1.3.0,1.3.1,1.3.2,1.3.3,1.3.4,1.3.4a,1.3.5,1.3.6,1.3.7,1.3.8}:refs/remotes/tags/*
@ryenus
Copy link
Author

ryenus commented Mar 14, 2012

the git-svn clone of http://rjb.rubyforge.org/svn is created with 3 steps

  1. run git svn init http://rjb.rubyforge.org/svn -T trunk rjb
  2. edit .git/config as above
  3. finally run git svn fetch

this way is much better compared to having a specific svn-remote for each tag/branch, for 2 reasons

  1. .git/config is much more concise
  2. git svn fetch would fetch everything, without the need to fetch from every svn-remote

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment