git-server

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

commit 9f6b1ec4a3c96982bdf52fd039a1720274f70e04
parent 3cb4ba1982a46f6e3018c0251b513cffd51d0743
Author: Cem Keylan <cem@ckyln.com>
Date:   Thu, 13 Aug 2020 14:53:58 +0300

post-receive recreate the stagit directory structure every time

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

diff --git a/post-receive b/post-receive @@ -29,7 +29,8 @@ done < mirrors # Make sure we export the current repository. :> git-daemon-export-ok -# Create the stagit structure +# Recreate the stagit structure +rm -rf "${STAGIT_DIR:?}/$repository" mkdir -p "$STAGIT_DIR/$repository" # Generate the index for every exported repository