git-hooks

Unnamed repository; edit this file 'description' to name the repository.
git clone https://git.tronto.net/git-hooks
Download | Log | Files | Refs | README

commit 8891c2c7a216c4cfadc0ed74cea4e4b2edc82da3
parent 6f426c3b72cfafb6696881530bfa62803eae84ab
Author: Sebastiano Tronto <sebastiano@tronto.net>
Date:   Mon, 21 Nov 2022 19:06:14 +0100

Lol missing " broke everything

Diffstat:
Mpost-receive-stagit | 5++---
1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/post-receive-stagit b/post-receive-stagit @@ -1,6 +1,6 @@ #!/bin/sh -yourname="Sebastiano Tronto +yourname="Sebastiano Tronto" repo="$PWD" name="$(basename $repo .git)" baseurl="https://git.tronto.net" @@ -92,8 +92,7 @@ if [ "$1" = "index" ]; then elif [ "$1" = "all" ]; then for g in *.git; do cd $g - printf "#!/bin/sh\n\n$bindir/post-receive-stagit\n" > \ - hooks/post-receive + cp $bindir/post-receive-stagit hooks/post-receive chmod +x hooks/post-receive $bindir/post-receive-stagit cd