|
|
# FAQ - Frequently Asked Questions
|
|
|
|
|
|
## How to activate a commit email hook
|
|
|
|
|
|
In your project configuration, section "services", activate the "Emails on push" service. Then, unfortunately, you need to enter the explicit list of recipients. We haven't found (yet) a way to configure this such that the list of project members is automatically used as the recipients list
|
|
|
|
|
|
## How to rewrite history
|
|
|
As documented in https://gitlab.inria.fr/help/user/permissions project members with roles Developer or Master or Owner are allowed to force push to non protected branches. If you want to rewrite history of a protected branch, You need first to switch the branch to non-protected (only Master or Owner can do that), do the force-push, then revert the branch to protected. |
|
|
\ No newline at end of file |
|
|
|
|
|
As documented in https://gitlab.inria.fr/help/user/permissions project members with roles Developer or Master or Owner are allowed to force push to non protected branches. If you want to rewrite history of a protected branch, You need first to switch the branch to non-protected (only Master or Owner can do that), do the force-push, then revert the branch to protected.
|
|
|
|
|
|
## How to add users of an INRIA ildap group (eg. team members) to a gitlab group
|
|
|
|
|
|
Open a ticket, specifying the INRIA ildap group name, the gitlab group name, and the access level (GUEST, REPORTER, DEVELOPER, MASTER, OWNER) that you wish to give to added members. We will run a script which adds *existing gitlab users* matching the ildap group members to the gitlab group. Be aware that inria members need to connect at least one time to gitlab for their account to be created.
|
|
|
|
|
|
Provided you are in the INRIA network and have access to ldap://ildap.inria.fr, you can search for a groupname with a command such as:
|
|
|
|
|
|
$ ldapsearch -x -H "ldap://ildap.inria.fr" -b "ou=groups,dc=inria,dc=fr" | grep -i <team name>
|
|
|
|
|
|
For verification purposes you can check the list of ildap group members with a command such as:
|
|
|
|
|
|
$ ldapsearch -x -H "ldap://ildap.inria.fr" -b "ou=People,dc=inria,dc=fr" "(inriaGroupMemberOf=cn=<ldap group name>,ou=groups,dc=inria,dc=fr)" |
|
|
\ No newline at end of file |