Created
January 7, 2013 03:31
-
-
Save danlamanna/4472100 to your computer and use it in GitHub Desktop.
quick, raw, git svn checkout.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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