mv git messages to git@onelab.eu (i'll handle the current repositories)
[infrastructure.git] / scripts / git-check.sh
index 7355f7a..91fd7d9 100755 (executable)
@@ -58,12 +58,13 @@ 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 "; }
-        git config hooks.announcelist >& /dev/null  || { git config hooks.announcelist  build@onelab.eu; echo -n "announcelist "; }
-        git config hooks.envelopesender >& /dev/null  || { git config hooks.envelopesender  build@onelab.eu; echo -n "envelopesender "; }
-        git config hooks.emailprefix >& /dev/null|| { git config hooks.emailprefix '[GIT]'; echo -n "emailprefix "; }
+       git config hooks.mailinglist >& /dev/null || { git config hooks.mailinglist git@onelab.eu; echo -n "mailinglist "; }
+        git config hooks.announcelist >& /dev/null  || { git config hooks.announcelist  git@onelab.eu; echo -n "announcelist "; }
+        git config hooks.envelopesender >& /dev/null  || { git config hooks.envelopesender  git@onelab.eu; echo -n "envelopesender "; }
+        git config hooks.emailprefix >& /dev/null|| { git config hooks.emailprefix '[GIT] '; echo -n "emailprefix "; }
        cd - >& /dev/null
     done
     echo ""
@@ -77,7 +78,7 @@ function check_hooks () {
        git=${b}.git
        echo -n "$git "
        # 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 )
+       (cd $git/hooks; cp -f /root/bin/post-receive-email-with-diffs post-receive )
     done
     echo ""
 }