Spelled receive wrong lol...

This commit is contained in:
Dionysus 2023-06-27 19:27:18 -04:00
parent 2d29c2854f
commit f55a30b48d
Signed by: acidvegas
GPG Key ID: EF4B922DB85DC9DE
1 changed files with 14 additions and 0 deletions

14
assets/post-receive Executable file
View File

@ -0,0 +1,14 @@
#!/bin/sh
# stagit post-receive script - developed by acidevegas (https://git.acid.vegas/stagit)
URL="git.acid.vegas"
PROTO="https"
CLONE_URL="git://$URL"
COMMIT_LIMIT=100
HTML_DIR="/srv/http"
DIR=$PWD
REPO=$(basename $DIR .git)
mkdir -p $HTML_DIR/$REPO && cd $HTML_DIR/$REPO && stagit -l $COMMIT_LIMIT -u "$PROTO://$URL/$REPO" $DIR
ln -sf log.html index.html
git --git-dir $DIR archive --format=tar.gz -o "$HTML_DIR/$REPO/$REPO.tar.gz" --prefix="$REPO/" HEAD