Git-svn - import full history -
problem
by default git svn clone imports history branch creation onwards, despite fact, history files present in svn repository prior branch creation.
our svn branch created svn copy, if matters.
my attempts
i've tried --no-minimize-url , --follow-parent, without success. produced git repository same without these params, starting branch creation.
desired result
git repository full history svn repository creation.
update actual command line git svn clone http://svnserver/repo/dir1/dir2/project.
what helped -t argument resulting command
git svn clone http://svnserver/repo/ -t dir1/dir2/project
many !
by default git svn clone imports history branch creation onwards, despite fact, history files present in svn repository prior branch creation.
yes. true. git svn try import branches branches if told so. manpage of git-svn:
when cloning svn repository, if none of options describing repository layout used (--trunk, --tags, --branches, --stdlayout), git svn clone create git repository linear history, branches , tags appear separate directories in working copy.
if pass url 1 branch git svn clone (instead of top-level url), you'll linear history branch. seeing.
if want full history, use repository layout options mentioned above, , pass top-level url. git svn try create git branches svn branches, , try give them right history, going before creation.
note give complete repository branches. if want branches, need modify configuration explained in manpage:
it possible fetch subset of branches or tags using comma-separated list of names within braces. example:
[svn-remote "huge-project"] url = http://server.org/svn fetch = trunk/src:refs/remotes/trunk branches = branches/{red,green}/src:refs/remotes/branches/* tags = tags/{1.0,2.0}/src:refs/remotes/tags/*
see git-svn(1).
Comments
Post a Comment