Skip to content

Instantly share code, notes, and snippets.

@danlamanna
Created January 7, 2013 03:31
Show Gist options
  • Save danlamanna/4472100 to your computer and use it in GitHub Desktop.
Save danlamanna/4472100 to your computer and use it in GitHub Desktop.
quick, raw, git svn checkout.
from fabric.operations import local
from fabric.context_managers import cd, lcd
repo = raw_input("URL: ")
dest_dir = raw_input("Dest Dir: ")
local("mkdir -p " + dest_dir)
local("git svn clone --stdlayout %(url)s %(dest)s" % { "url": repo,
"dest": dest_dir })
with lcd(dest_dir):
local("git-svn-clone-externals")
local("git svn create-ignore")
local("git commit")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment