-
Notifications
You must be signed in to change notification settings - Fork 117
The plugin deletes all gitolite mirroring attributes #415
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
Comments
Hi Paolo! Why not using the provided mirroring feature? |
Hi Nicolas, We need a two way mirroring between a private (intranet) gitolite and a public (internet acces but restricted to authorised users) gitolite, both of them being administrated by us. Does the provided feature support two way mirroring ? Thank you in advance. Cheers, Paolo |
No.
Yes. (actually it supports mirroring to any Git repository) But I'm not sure this will fit your needs... |
Hi, Thank you for your answers. Well we do need the two way mirroring. So do you think my suggestion that mirroring attributes (and perhaps any gitolite attribute not managed by the plugin) should be kept as is makes sense? If yes, as I was telling you, I could do the job, provided that you give me a few hints on where to start. Thank you in advance. Paolo |
Hi Nicolas, Any news on this topic? Thank you in advance. Paolo |
Hi Paolo, Unfortunately no. If you want to work on this you can take a look a these classes : RepositoryUpdater inherits from RepositoryHandler which defines most of the instance methods needed to update a repository config. The real things happen here https://github.com/jbox-web/redmine_git_hosting/blob/devel/lib/redmine_git_hosting/gitolite_handlers/repository_handler.rb#L61 |
Thank you very much, I'll do my best! Cheers, Paolo |
Hi Paolo! Any news? |
Hi Nicolas, |
Hello @n-rodriguez |
@alessandroleite Great! May the force be with you! |
Hi! I've added support for Gitolite option in commit : 7b7e458. |
Example :
|
Thank you @n-rodriguez , we'll try this ASAP! |
Hi, I have a similar requirement. Did this work for you? |
@timoc , yes, it works fine for us.
|
Hi Nicolas,
We are using the gitolite mirroring feature (http://gitolite.com/gitolite/mirroring.html), which requires to add attributes to the repository description in gitolite.conf such as:
repo foo
...access rules...
We have setup such mirroring for some of our redmine managed repos and it works fine, until someone makes changes through redmine, e.g. adding new project members.
At this point, the repo configuration is rewritten and the mirroring attributes are lost.
Do you think it would be possible that all attributes that the plugin does not manage be kept as they are found?
If you agree with that design and are willing to head me to the code where the rewrite operation is done, I'd fork and suggest a pull request with pleasure.
Please let me know and thank you for this great plugin!
Cheers,
Paolo
The text was updated successfully, but these errors were encountered: