From f55a30b48d0764d9987ffd85a1a4e000eb56ce90 Mon Sep 17 00:00:00 2001 From: acidvegas Date: Tue, 27 Jun 2023 19:27:18 -0400 Subject: [PATCH] Spelled receive wrong lol... --- assets/post-receive | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100755 assets/post-receive diff --git a/assets/post-receive b/assets/post-receive new file mode 100755 index 0000000..f47280c --- /dev/null +++ b/assets/post-receive @@ -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