tcreate-repo.sh: add post-update hook for preparing bare repo for static http -… | |
git clone git://src.adamsgaard.dk/stagit | |
Log | |
Files | |
Refs | |
README | |
LICENSE | |
--- | |
commit a7da01a6eb60e5ad6fa61da82e50babb57aadcf7 | |
parent 907ac1bf0ed6720185fdfb55c14363fd50909e09 | |
Author: Anders Damsgaard <[email protected]> | |
Date: Sat, 28 Nov 2020 00:50:55 +0100 | |
create-repo.sh: add post-update hook for preparing bare repo for static http | |
Diffstat: | |
M create-repo.sh | 2 ++ | |
1 file changed, 2 insertions(+), 0 deletions(-) | |
--- | |
diff --git a/create-repo.sh b/create-repo.sh | |
t@@ -20,6 +20,8 @@ for r in "$@"; do | |
read | |
echo "${REPLY:-$default_owner}" > "$r"/owner | |
ln -sf ../../post-receive.sh "$r"/hooks/post-receive | |
+ cp "$r"/hooks/post-update{.sample,} | |
+ chmod a+x "$r"/hooks/post-update | |
echo "${giturl}/${r}" > "$r"/url | |
echo "${altgiturl}/${r}.git" > "$r"/alturl | |
touch "$r"/git-daemon-export-ok |