commit e4fee3245faa1d78e394a39a11b225576b4c169a parent 14573fc1339ea783d0f99083545e0b7f003b378f Author: Cem Keylan <cem@ckyln.com> Date: Thu, 13 Aug 2020 13:34:45 +0300 post-receive: fix wrong export file. Diffstat:
M | post-receive | | | 8 | +++----- |
1 file changed, 3 insertions(+), 5 deletions(-)
diff --git a/post-receive b/post-receive @@ -26,17 +26,15 @@ done < mirrors [ -f owner ] || printf '%s\n' "$OWNER" > owner [ -f url ] || printf '%s\n' "$BASE_URL/$repository" > url -# Make sure we export the current repository. No, we don't want to run the -# 'export' command. -# shellcheck disable=2238 -:> export +# Make sure we export the current repository. +:> git-daemon-export-ok # Create the stagit structure mkdir -p "$STAGIT_DIR/$repository" # Generate the index for every exported repository set -- -for repo in "$REPO_DIR/"*/export; do set -- "$@" "${repo%/*}"; done +for repo in "$REPO_DIR/"*/git-daemon-export-ok; do set -- "$@" "${repo%/*}"; done stagit-index "$@" > "$STAGIT_DIR/index.html" # Install style files