mirror of
https://github.com/release-engineering/dist-git.git
synced 2025-02-23 15:02:54 +00:00
always symlink gitolite's update hook
This commit is contained in:
parent
0b0e150b75
commit
7a9c2f667b
1 changed files with 1 additions and 8 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue