From 99e9ea4189348c60ee9bb91d1a4aaf873be5099d Mon Sep 17 00:00:00 2001 From: Jakub Skoczen Date: Thu, 8 Jan 2009 11:48:34 +0100 Subject: [PATCH] Post receive will symlink the id script. --- id-new-project/id-new-project.sh | 6 +++--- id-new-project/post-receive | 16 ++++++++++++++++ 2 files changed, 19 insertions(+), 3 deletions(-) create mode 100755 id-new-project/post-receive diff --git a/id-new-project/id-new-project.sh b/id-new-project/id-new-project.sh index 42d9410..0f615be 100755 --- a/id-new-project/id-new-project.sh +++ b/id-new-project/id-new-project.sh @@ -16,8 +16,8 @@ if test -z "${TYPE}"; then usage fi -if test ! -e post-receive-email-id; then - echo "file post-receive-email-id must be in current directory" +if test ! -e post-receive; then + echo "file post-receive must be in the current directory" exit 1 fi @@ -34,7 +34,7 @@ if git clone --bare $SRC ${PROJ}.git; then touch git-daemon-export-ok echo "${DESC}" >description git config core.sharedRepository true - cp ../post-receive-email-id hooks/post-receive + cp ../post-receive hooks/post-receive chmod +x hooks/post-receive git config hooks.mailinglist gitid@indexdata.dk cd .. diff --git a/id-new-project/post-receive b/id-new-project/post-receive new file mode 100755 index 0000000..a95d7a7 --- /dev/null +++ b/id-new-project/post-receive @@ -0,0 +1,16 @@ +#!/bin/sh +# +# An example hook script for the post-receive event +# +# This script is run after receive-pack has accepted a pack and the +# repository has been updated. It is passed arguments in through stdin +# in the form +# +# For example: +# aa453216d1b3e49e7f6f98441fa56946ddcd6a20 68f7abf4e6f922807889f52bc043ecd31b79f814 refs/heads/master +# +# see contrib/hooks/ for an sample, or uncomment the next line (on debian) +# + + +. /home/git/tools/git-tools/post-receive-email-id -- 1.7.10.4