git-server

git server-side stuff | stagit
git clone git://git.ckyln.com/~cem/hooks.git
Log | Files | Refs | README

commit 3013db62a64abfdad9e27ad4177c49d4dc17ce37
parent 14f4536ec7d1ef4ce60ede479d7e42693a25f6e3
Author: Cem Keylan <cem@ckyln.com>
Date:   Tue,  2 Jun 2020 04:43:26 +0300

fix raw creation

Diffstat:
Mpost-receive | 3++-
1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/post-receive b/post-receive @@ -75,6 +75,7 @@ ln -sf log.html index.html for file in refs/heads/*; do branch=${file##*/} mkdir -p "$STAGIT_DIR/raw/$repository/$branch" - git archive --format tar | (cd "$STAGIT_DIR/raw/$repository/$branch" || return 1 ; tar xf -) + git archive --format tar -- "$branch" | + (cd "$STAGIT_DIR/raw/$repository/$branch" || return 1 ; tar xf -) done }