From 7a9c2f667b47e9c0cc27723d4a38e9ee825128df Mon Sep 17 00:00:00 2001 From: clime Date: Tue, 14 Feb 2017 16:15:25 +0100 Subject: [PATCH] always symlink gitolite's update hook --- scripts/dist-git/setup_git_package | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/scripts/dist-git/setup_git_package b/scripts/dist-git/setup_git_package index 801309b..12db7a0 100755 --- a/scripts/dist-git/setup_git_package +++ b/scripts/dist-git/setup_git_package @@ -20,7 +20,6 @@ if [ ! -d $GITROOT ] ; then fi # Local variables -GITOLITE=0 VERBOSE=0 TEST= IGNORE= @@ -36,7 +35,6 @@ Usage: Options: -h,--help This help message - -g,--gitolite Install gitolite's update hook EOF } @@ -48,9 +46,6 @@ case $key in Usage exit 0 ;; - --gitolite|-g) - GITOLITE=1 - ;; *) PACKAGE="$1" ;; @@ -102,9 +97,7 @@ git push -q origin master popd >/dev/null # Place the gitolite update hook in place since we're not using our own -if [ $GITOLITE -gt 0 ]; then - ln -s /etc/gitolite/hooks/common/update $GITROOT/$PACKAGE.git/hooks/update -fi +ln -s /etc/gitolite/hooks/common/update $GITROOT/$PACKAGE.git/hooks/update # Setup our post-receive hooks mkdir -p $GITROOT/$PACKAGE.git/hooks/post-receive-chained.d