Handle trunk branches tags in the middle of svn url
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
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
Alternatively you could keep the git clone command and alter the symlink.
Sorry, I don't get your comment. It's about the commit befc0f0?
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.