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:
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