Download the code:
scram project CMSSW_8_0_4 cd CMSSW_8_0_4/src cmsenv git cms-merge-topic previsualconsent:iRingSubdet804 git clone git@github.com:previsualconsent/EcalTiming.git cd EcalTiming git checkout Run2016 cd - scram b -j16
Check if you have astyle command installed:
which astyle
If you don't, please install it from http://sourceforge.net/projects/astyle/ and put it into your $HOME/bin directory
Then add the following pre-commit hook into your GIT_DIR:
cd $CMSSW_BASE/src/EcalTiming/ if [ -d ".git/hooks" ];then cp .gitprecommit .git/hooks/pre-commit else echo "[ERROR] You are not in the main directory of this repository" >> /dev/stderr fi cd -
Go back to index