The elusive post-receive example that I so often need
startproject.sh
1 file changed, +7 -0
+7-0startproject.sh
| @@ -0,0 +1,7 @@ | ||
| 1 | +#!/bin/bash | |
| 2 | + | |
| 3 | +$project=$HOME/$1 | |
| 4 | + | |
| 5 | +git init --bare $project | |
| 6 | +cp post-receive $project/hooks/post-receive | |
| 7 | +chmod +x $project/hooks/post-receive |