irongit

The elusive post-receive example that I so often need

post-receive/startproject.sh
7 lines138 BBourne Again Shell (bash)
1#!/bin/bash
2
3$project=$HOME/$1
4
5git init --bare $project
6cp post-receive $project/hooks/post-receive
7chmod +x $project/hooks/post-receive