Add some weak docs and samples for server-side hook install.
[git-central.git] / server / post-receive.sample
diff --git a/server/post-receive.sample b/server/post-receive.sample
new file mode 100644 (file)
index 0000000..bb2fc2d
--- /dev/null
@@ -0,0 +1,11 @@
+#!/bin/sh
+
+nl=$'\n'
+input=""
+while read newref oldref refname ; do
+    input="$input$newref $oldref $refname$nl"
+done
+
+echo -n "$input" | /srv/git/gc/server/post-receive-one
+echo -n "$input" | /srv/git/gc/server/post-receive-two
+