irongit
Explore
Docs
Sign in
Register
huncholane
/
post-receive
Public
The elusive post-receive example that I so often need
Code
Commits
Branches
Tags
main
post-receive
/
startproject.sh
8 lines
196 B
Bourne Again Shell (bash)
Raw
Download
History
1
#
!/bin/bash
2
3
project
=
$
HOME
/
$
1
4
5
git
init
--
bare
$
project
6
cp
post-receive
$
project
/hooks/post-receive
7
sed
-
i
'
s/PROJECT_NAME/
'
$
1
'
/
'
$
project
/hooks/post-receive
8
chmod
+x
$
project
/hooks/post-receive