2023-06-27 23:27:18 +00:00
|
|
|
#!/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
|
2023-06-28 00:20:01 +00:00
|
|
|
git --git-dir $DIR archive --format=tar.gz -o "$HTML_DIR/$REPO/archive.tar.gz" --prefix="$REPO/" HEAD
|