diff options
| -rwxr-xr-x | post-receive-stagit | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/post-receive-stagit b/post-receive-stagit index 9b3de8c..bad3b68 100755 --- a/post-receive-stagit +++ b/post-receive-stagit | |||
| @@ -1,6 +1,6 @@ | |||
| 1 | #!/bin/sh | 1 | #!/bin/sh |
| 2 | 2 | ||
| 3 | yourname="Sebastiano Tronto | 3 | yourname="Sebastiano Tronto" |
| 4 | repo="$PWD" | 4 | repo="$PWD" |
| 5 | name="$(basename $repo .git)" | 5 | name="$(basename $repo .git)" |
| 6 | baseurl="https://git.tronto.net" | 6 | baseurl="https://git.tronto.net" |
| @@ -92,8 +92,7 @@ if [ "$1" = "index" ]; then | |||
| 92 | elif [ "$1" = "all" ]; then | 92 | elif [ "$1" = "all" ]; then |
| 93 | for g in *.git; do | 93 | for g in *.git; do |
| 94 | cd $g | 94 | cd $g |
| 95 | printf "#!/bin/sh\n\n$bindir/post-receive-stagit\n" > \ | 95 | cp $bindir/post-receive-stagit hooks/post-receive |
| 96 | hooks/post-receive | ||
| 97 | chmod +x hooks/post-receive | 96 | chmod +x hooks/post-receive |
| 98 | $bindir/post-receive-stagit | 97 | $bindir/post-receive-stagit |
| 99 | cd | 98 | cd |
