Difference: CERNGit (5 vs. 6)

Revision 62015-02-21 - WilliamBreadenMadden

Line: 1 to 1
 
META TOPICPARENT name="WebHome"
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:
  %CODE{"bash"}% #!/bin/bash
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:

%CODE{"bash"}% kinit ${USER}@CERN.CH git clone https://:@git.cern.ch/kerberos/git-hooks cd git-hooks touch junk/post-receive cat >> junk/post-receive<<'EOF' #!/bin/bash

git cat-file blob HEAD:README.html > ${GIT_DIR}/README.html EOF chmod 755 junk/post-receive git add junk/post-receive git commit -m 'add post-receive script for package junk' git push %ENDCODE%

 

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:
  %CODE{"bash"}% config gitweb.owner = "your egroup"
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:

%CODE{"bash"}% kinit ${USER}@CERN.CH git clone https://:@git.cern.ch/kerberos/gitolite-admin cd gitolite-admin cat > conf/subs/TTHbbLeptonic.conf<<'EOF' repo TTHbbLeptonic config gitweb.owner = atlas-sw-skunkworks config gitweb.description = development and testing of ttH, H to bb prototype analysis package for l + jets, dilepton and boosted channels RW+ = @atlas-sw-skunkworks EOF git add conf/subs/TTHbbLeptonic.conf git commit -m 'update Gitweb description' git push %ENDCODE%

 

README workflow

A recommended workflow for generating the README in general development (i.e. following the git-hooks setup etc.) is as follows:

 
This site is powered by the TWiki collaboration platform Powered by PerlCopyright © 2008-2020 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback