git-svn-clone-externals icon indicating copy to clipboard operation
git-svn-clone-externals copied to clipboard

Handle trunk branches tags in the middle of svn url

Open martinsson opened this issue 14 years ago • 4 comments

Hi,

When executing your script on the following svn url : https://svn.bestofmedia.com/frontend-repository/frontendCommons/sWebserviceClientGenerator/trunk/lib/bomLibrairies

the script looses track because the sed expression deletes the "trunk" part instead of getting the part before "trunk". Here is a echo of the commande that is executed :

  • call git svn clone '' https://svn.bestofmedia.com/frontend-repository/frontendCommons/sWebserviceClientGenerator/lib/bomLibrairies -T trunk -b branches -t tags lib/bomLibrairies

But also in the svn clone we should rather do something like git svn clone https://svn.bestofmedia.com/frontend-repository/frontendCommons/sWebserviceClientGenerator -T trunk/lib/bomLibraries -b branches/lib/bomLibraries -t tags/lib/bomLibraries lib/bomLibrairies

No? Anyway that is the fix I'm submitting. Please tell me what you think

Johan

martinsson avatar May 04 '11 07:05 martinsson

Hello André,

I didn't get any feedback on my this pull request. If you're not happy with it, please tell me what you need for it to be accepted.

Also I didn't want to navigate to each git_external in order to execute git-svn-externals-update. So I changed so that it looks any externals in or below the current dir.

  • so if I want to update all externals i do cd myproject; git-svn-externals-update
    • if I want only one cd myproject/.git_externals/external1/; git-svn-externals-update

martinsson avatar Jun 24 '11 12:06 martinsson

Alternatively you could keep the git clone command and alter the symlink.

michael-k avatar Nov 28 '11 15:11 michael-k

Sorry, I don't get your comment. It's about the commit befc0f0?

martinsson avatar Dec 10 '11 15:12 martinsson

It was about your pull request post. I didn't read the commit diffs. My comment doesn't say what I meant. I propose to use git svn clone https://svn.bestofmedia.com/frontend-repository/frontendCommons/sWebserviceClientGenerator -T trunk -b branches -t tags sWebserviceClientGenerator and to symlink to the subdirectory. This would blow up the git-svn repo, but if you need the full history of the subfolder it will be there (it might have been at some other place before).

I prefer this to be configurable by the user.

michael-k avatar Dec 13 '11 12:12 michael-k