How to git svn clone full history despite svn copy -


in company switch svn git. svn use big, doesn't have svn layout , on every version split made svn copy.

svn repository structur:

  • svnserver.company.de
    • product xy
      • majorversionnumber 1
      • majorversionnumber 2
      • majorversionnumber 3
        • minorversionnumber 3.0.0
        • minorversionnumber 3.0.1
        • minorversionnumber ...
      • majorversionnumber 4
      • ....
    • product zw

what want or expecting git do:

git svn clone clone files 1 subfolder / copy full history of these files (like tortoise unchecking "stop on copy/rename").

what git doing:

git svn clone --prefix=origin/ --username=spe --authors-file=authors.txt https://svnserver.company.de/repos/product/majorversionnumber/master/source product

-> clone files 1 subfolder / copy history until copy has taken place.

the question:

has git equivalent svns "stop on copy/rename" or how clone full history despite svn copy?

what have found far: git-svn - import full history work-around failing "git svn clone" (requiring full history) https://github.com/githubtraining/zzz_deprecated-feedback/issues/43

to honest, didn't understand solution approaches of these links neighter if had same problem do.

okay, if understand correctly full layout this:

svnserver.company.de   product xy     majorversionnumber 1       master         <actual source starts here>     majorversionnumber 2     majorversionnumber 3       master         <actual source starts here>       minorversionnumber 3.0.0         master           <actual source starts here>       minorversionnumber 3.0.1       minorversionnumber ...     majorversionnumber 4     ....   product zw 

this untested educated guess, i'd try this. first, git svn init svn://svnserver.company.de. edit .git/config's [svn-remote] section this:

fetch = product xy/majorversionnumber 1/master:refs/remotes/origin/trunk branches = product xy/{majorversionnumber 2,majorversionnumber 3}/master:refs/remotes/origin/branches/* branches = product xy/majorversionnumber 3/{minorversionnumber 3.0.0,minorverionnumber 3.0.1}/master:refs/remotes/origin/branches/* 

then git svn fetch. can use similar commands + config create clone product zw.

see configuration section of git svn more details.


Comments

Popular posts from this blog

javascript - Jquery show_hide, what to add in order to make the page scroll to the bottom of the hidden field once button is clicked -

javascript - Highcharts multi-color line -

javascript - Enter key does not work in search box -