|
|
Home » Community » Coffee corner » Using of GIT instead of SVN for Upp development
Using of GIT instead of SVN for Upp development [message #55460] |
Fri, 13 November 2020 10:27  |
Novo
Messages: 1430 Registered: December 2006
|
Ultimate Contributor |
|
|
AFAIK, the main reason why Upp is still using SVN is a problem with fine-grained write permissions for developers. Basically, majority of developers should have write access rights only to "bazaar". Majority of git-servers doesn't allow to do that.
Fortunately, there is one git-server, which allows that. It is called gitolite.
With gitolite you can set pretty much any permission, including unusual permissions like limiting number of changed files in one commit.
Installation is very simple. The only problem that I had when I was trying to install it on Alpine Linux was disabled user "git". I had to enable it.
Gitolite is identifying users by ssh keys. This is less convenient than regular user name and password, but is still quite usable.
Administrator just needs to store multiple ssh keys per user.
Keys can be stored in different folders, or in one folder using pattern "user_name@unique_str.pub
Another argument: Linux kernel developers are using gitolite.
Regards,
Novo
|
|
|
|
Re: Using of GIT instead of SVN for Upp development [message #55462 is a reply to message #55460] |
Fri, 13 November 2020 11:17   |
|
Novo wrote on Fri, 13 November 2020 10:27AFAIK, the main reason why Upp is still using SVN is a problem with fine-grained write permissions for developers. Basically, majority of developers should have write access rights only to "bazaar". Majority of git-servers doesn't allow to do that.
Why not using standard github dev flow where you create PR when you want to contribute. Mirek could accept or reject such PR and that's it
|
|
|
|
|
Re: Using of GIT instead of SVN for Upp development [message #55466 is a reply to message #55461] |
Sat, 14 November 2020 00:20   |
Novo
Messages: 1430 Registered: December 2006
|
Ultimate Contributor |
|
|
mirek wrote on Fri, 13 November 2020 04:42it is also about documentation and that would be harder nut to crack... (as .tpp folders are inside are the permissions need to be dynamically updated).
Gitolite allows to use regular expressions with git refs. It calls them "refex".
There is another even more interesting thing called "virtual ref". You can make your own VREF.
Out of the box you get a "VREF/NAME", which corresponds to a file name.
By combining VREF and regexp you can catch all files ending with ".tpp", or "en-us.tpp" if you'd like, and give specific users or groups of users right to change these files.
Regards,
Novo
|
|
|
|
|
|
|
Goto Forum:
Current Time: Sat Apr 26 23:17:18 CEST 2025
Total time taken to generate the page: 0.01153 seconds
|
|
|