diff --git a/assets/helper b/assets/helper index 93494c3..ce86d35 100755 --- a/assets/helper +++ b/assets/helper @@ -61,7 +61,7 @@ make_repos() { echo "[~] processing '$REPO' repository..." 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/.git archive --format=tar.gz -o "$HTML_DIR/$REPO/$REPO.tar.gz" --prefix="$REPO/" HEAD + git --git-dir $dir/.git archive --format=tar.gz -o "$HTML_DIR/$REPO/archive.tar.gz" --prefix="$REPO/" HEAD done } diff --git a/assets/post-receive b/assets/post-receive index f47280c..51716cb 100755 --- a/assets/post-receive +++ b/assets/post-receive @@ -11,4 +11,4 @@ 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 +git --git-dir $DIR archive --format=tar.gz -o "$HTML_DIR/$REPO/$archive.tar.gz" --prefix="$REPO/" HEAD diff --git a/assets/post-recieve b/assets/post-recieve deleted file mode 100755 index db27fb7..0000000 --- a/assets/post-recieve +++ /dev/null @@ -1,14 +0,0 @@ -#!/bin/sh -# stagit post-recieve 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 diff --git a/stagit.c b/stagit.c index b57104b..513163d 100644 --- a/stagit.c +++ b/stagit.c @@ -493,7 +493,8 @@ void writeheader(FILE *fp, const char *title) { fputs("\t\t