Line: 1 to 1 | ||||||||
---|---|---|---|---|---|---|---|---|
| ||||||||
Changed: | ||||||||
< < | -- Will Breaden Madden - 2015-02-16 | |||||||
> > | -- Will Breaden Madden - 2015-02-21 | |||||||
Line: 191 to 191 | ||||||||
Changed: | ||||||||
< < | In order to set up the post-receive script, clone the special CERN Git repository "git-hooks". Then, create the executable script "post-receive" in the directory of the respsitory "git-hooks" that corresponds to the name of the repository for which a README workflow is being prepared (e.g. "junk"). Ensure that the script (e.g. git-hooks/junk/post-receive) is executable. The content of the script should be as follows: | |||||||
> > | In order to set up the post-receive script, clone the special CERN Git repository "git-hooks". Then, create the executable script "post-receive" in the directory of the repository "git-hooks" that corresponds to the name of the repository for which a README workflow is being prepared (e.g. "junk"). Ensure that the script (e.g. git-hooks/junk/post-receive) is executable. The content of the script should be as follows: | |||||||
| ||||||||
Line: 210 to 210 | ||||||||
Specifically, the content of the HTML README file is inserted into a DIV of the rendered Gitweb project summary page. | ||||||||
Added: | ||||||||
> > | A procedure to do this is as follows:
| |||||||
set up gitweb-description | ||||||||
Changed: | ||||||||
< < | By default, the "description" of a Git repository is an arbitrary string and the "owner" is the e-group that administrates the repository. These variables are for the Gitweb summary page of a repository only. They do not change any other functionality of a repository. Note that to change the owner of a repository, a request must be submitted. In order to change these variables, clone the repository "gitolite-admin". Edit the configuration file of the repository under development in the repository gitolite-admin (e.g. gitolite-admin/conf/subs/junk.conf). For this configuration file, the following default variables are defined: | |||||||
> > | By default, the "description" of a Git repository is an arbitrary string and the "owner" is the e-group that administers the repository. These variables are for the Gitweb summary page of a repository only. They do not change any other functionality of a repository. Note that to change the owner of a repository, a request must be submitted. In order to change these variables, clone the repository "gitolite-admin". Edit the configuration file of the repository under development in the repository gitolite-admin (e.g. gitolite-admin/conf/subs/junk.conf). For this configuration file, the following default variables are defined: | |||||||
| ||||||||
Line: 231 to 249 | ||||||||
Changing, committing and then pushing to the CERN central Git repository updates the variables. | ||||||||
Added: | ||||||||
> > | A procedure to do this is as follows:
| |||||||
README workflowA recommended workflow for generating the README in general development (i.e. following the git-hooks setup etc.) is as follows: |
Line: 1 to 1 | ||||||||
---|---|---|---|---|---|---|---|---|
| ||||||||
Changed: | ||||||||
< < | -- Will Breaden Madden - 2015-02-14 | |||||||
> > | -- Will Breaden Madden - 2015-02-16 | |||||||
Line: 14 to 14 | ||||||||
Git is better than Subversion. | ||||||||
Changed: | ||||||||
< < | The CERN central Git service is at https://git.cern.ch/. The CERN Information Technology Department page on the service is https://information-technology.web.cern.ch/services/git-service. The CERN Service Portal Knowledge Base articles for the Git service are here https://cern.service-now.com/service-portal/faq.do?se=git-service. | |||||||
> > | CERN provides access-controlled Git repositories. In a nutshell, a repository is created usually for an individual project and its access permissions are controlled by e-groups. So, the access and editing permissions for users of the repository are inherited from an e-group. For a quick start, a recommended procedure is as follows:
| |||||||
Changed: | ||||||||
< < | The access and editing permissions of CERN Git repositories are controlled using e-groups. | |||||||
> > | linksThe CERN central Git service is at https://git.cern.ch/. The CERN Information Technology Department page on the service is https://information-technology.web.cern.ch/services/git-service. The CERN Service Portal Knowledge Base articles for the Git service are here https://cern.service-now.com/service-portal/faq.do?se=git-service. | |||||||
web representation of repositories | ||||||||
Line: 66 to 76 | ||||||||
owners and administrators | ||||||||
Changed: | ||||||||
< < | There is one owner and can be multiple administrators of an e-group. Ownership can be transferred. Owners and administrators have the same usage rights of the e-group. When an e-group is deleted, the owner only can recreate a group with the same name 30 days afterwards. | |||||||
> > | There is one owner and there can be multiple administrators of an e-group. Ownership can be transferred. Owners and administrators have the same usage rights of the e-group. When an e-group is deleted, the owner only can recreate a group with the same name 30 days afterwards. | |||||||
posting restrictions | ||||||||
Line: 226 to 236 | ||||||||
A recommended workflow for generating the README in general development (i.e. following the git-hooks setup etc.) is as follows:
| ||||||||
Changed: | ||||||||
< < |
| |||||||
> > |
| |||||||
|
Line: 1 to 1 | ||||||||
---|---|---|---|---|---|---|---|---|
| ||||||||
Line: 74 to 74 | ||||||||
archives | ||||||||
Changed: | ||||||||
< < | E-group archives are available here: | |||||||
> > | E-group archives are available via a URL of the following form: | |||||||
Changed: | ||||||||
< < | ||||||||
> > | ||||||||
using e-groups for access control |
Line: 1 to 1 | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
| |||||||||||
Line: 48 to 48 | |||||||||||
Added: | |||||||||||
> > | static e-groups and self-subscription policyA static e-group means that the creator defines the policies for self-subscription and users are not granted access to the members list.dynamic e-groupsDynamic e-groups are defined by criteria such as experiment, department, status and location.privacy policy
owners and administratorsThere is one owner and can be multiple administrators of an e-group. Ownership can be transferred. Owners and administrators have the same usage rights of the e-group. When an e-group is deleted, the owner only can recreate a group with the same name 30 days afterwards.posting restrictionsBy default, owners and administrators only are granted the ability to post messages. This can be changed in the mail properties configuration.archivesE-group archives are available here:using e-groups for access controle-groups can be used for granting access to Indico events. In order to do this, access the Indico event's management page and then access the protection section. | ||||||||||
create a repositoryTo create a GIT repository, access CERN Forge (a portal for the management of SVN, Git and JIRA projects) and create a request for a GIT repository: |
Line: 1 to 1 | ||||||||
---|---|---|---|---|---|---|---|---|
| ||||||||
Changed: | ||||||||
< < | -- Will Breaden Madden - 2015-02-13 | |||||||
> > | -- Will Breaden Madden - 2015-02-14 | |||||||
Line: 91 to 91 | ||||||||
For the purposes of examples, a repository with the name "junk" is used. The Kerberos interface can be used to clone a Git repository using a command such as the following:
| ||||||||
Changed: | ||||||||
< < | kinit wbreaden@CERN.CH | |||||||
> > | kinit ${USER}@CERN.CH | |||||||
git clone https://:@git.cern.ch/kerberos/junk %ENDCODE% |
Line: 1 to 1 | ||||||||
---|---|---|---|---|---|---|---|---|
Added: | ||||||||
> > |
CERN GitThis page contains information on the use of CERN Git repositories.introductionGit is better than Subversion. The CERN central Git service is at https://git.cern.ch/. The CERN Information Technology Department page on the service is https://information-technology.web.cern.ch/services/git-service. The CERN Service Portal Knowledge Base articles for the Git service are here https://cern.service-now.com/service-portal/faq.do?se=git-service. The access and editing permissions of CERN Git repositories are controlled using e-groups.web representation of repositoriesCERN repositories can be represented using Gitweb.create new repositoryTo create a GIT repository, an e-group is needed for permissions.create an e-groupThe access and editing permissions associated with a CERN Git repository are inherited from a CERN e-group. Specifically, the members of the e-group are granted repository permissions -- not owners. For the development of a group project, an existing e-group can be used. For personal or experimental projects, a new e-group can be beneficial. Create an e-group at the following link: Note that there is a naming convention for e-group names: An example e-group name could be "atlas-sw-skunkworks". As of 2015-02-13, there is the start of a Git infrastructure e-group naming convention for user Git repositories:create a repositoryTo create a GIT repository, access CERN Forge (a portal for the management of SVN, Git and JIRA projects) and create a request for a GIT repository: The following details are needed for the request:
CERN Git repository usageclone repositoryFor the purposes of examples, a repository with the name "junk" is used. The Kerberos interface can be used to clone a Git repository using a command such as the following:commits and pushesFor a new, empty repository, the push procedure should be initialised likely in the following way:README repository summary pageGitweb can display a README file in the summary page of a CERN Git repository. This is used typically as a short introduction to the repository. There are some CERN Knowledge Base articles on this:
set up git-hook for READMEAdd a post-receive hook script using the following command:This text is normal. This text is bold. This text is italic. This text is normal. %ENDCODE%set up gitweb-descriptionBy default, the "description" of a Git repository is an arbitrary string and the "owner" is the e-group that administrates the repository. These variables are for the Gitweb summary page of a repository only. They do not change any other functionality of a repository. Note that to change the owner of a repository, a request must be submitted. In order to change these variables, clone the repository "gitolite-admin". Edit the configuration file of the repository under development in the repository gitolite-admin (e.g. gitolite-admin/conf/subs/junk.conf). For this configuration file, the following default variables are defined:README workflowA recommended workflow for generating the README in general development (i.e. following the git-hooks setup etc.) is as follows:
|