Post receive will symlink the id script.
authorJakub Skoczen <jakub@indexdata.dk>
Thu, 8 Jan 2009 10:48:34 +0000 (11:48 +0100)
committerJakub Skoczen <jakub@indexdata.dk>
Thu, 8 Jan 2009 10:48:34 +0000 (11:48 +0100)
id-new-project/id-new-project.sh
id-new-project/post-receive [new file with mode: 0755]

index 42d9410..0f615be 100755 (executable)
@@ -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 (executable)
index 0000000..a95d7a7
--- /dev/null
@@ -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
+#  <oldrev> <newrev> <refname>
+# 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