New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Expose via SVN different branches of a GitLab repo? #188
Comments
No, it is currently impossible to expose multiple branches of a single repo when using |
Can you recommend any workaround? I would shutdown a remaining svn repo and move to git completely but svn users need to access multiple branches. |
Multiple branches per repo are currently only supported for However,
|
I've finally found some time to try this approach out. Unfortunately it's not going to work with GitLab-hosted repos. Here is a my config:
This way I was able to checkout the repo via SVN, but when I try commit something it fails with
Probably, there is something special in GitLab hooks (some env vars should be set?). Any thoughts on how to make it work? |
Aaargh, this is all so weird. GitLab became stupid around 10.x (issue #160) and stopped being able to understand what repo commits are being pushed into (even though hook actually has this information via
Be careful with this, it wipes stuff. |
Thanks for clarifying. Then maybe to add
Thanks. I just took this from the example config. |
No, that will not work. Besides repo id GitLab needs user id (because they need to know WHO is pushing to repo and whether he has rights to do so). Uh. I guess we need to go back to |
This was fixed in #272 and released in git-as-svn 1.18.0. Now you just need to add |
I know git-as-svn does not support (yet) multiple SVN branches layout; this issue recommends
as a workaround. Is it possible for GitLab repos? If yes, can you share an example config doing that?
The text was updated successfully, but these errors were encountered: