Merge branch 'master' of ssh://git.onelab.eu/git/infrastructure
[infrastructure.git] / scripts / git-check.sh
index 9c98c72..a7f2ee5 100755 (executable)
@@ -58,6 +58,7 @@ function check_configs () {
        git=${b}.git
        echo -n "$git "
        cd $git 
+       git config core.sharedrepository >& /dev/null || { git config core.sharedrepository true; echo -n "sharedrepository "; }
        git config daemon.uploadpack >& /dev/null || { git config daemon.uploadpack true; echo -n "uploadpack "; }
        git config daemon.uploadarch >& /dev/null || { git config daemon.uploadarch true; echo -n "uploadarch "; }
        git config hooks.mailinglist >& /dev/null || { git config hooks.mailinglist build@onelab.eu; echo -n "mailinglist "; }
@@ -76,7 +77,8 @@ function check_hooks () {
        b=$(basename $arg .git)
        git=${b}.git
        echo -n "$git "
-       (cd $git/hooks; [ -h post-receive ] || ln -sf /usr/share/doc/git-1.5.5.6/hooks/post-receive-email . )
+       # standard version is in /usr/share/doc/git-1.5.5.6/hooks/post-receive-email
+       (cd $git/hooks; [ -h post-receive ] || ln -sf /root/bin/post-receive-email-with-diffs post-receive )
     done
     echo ""
 }