From 47e2436ccf78a5e5417d8c3eb741f6c8d7b08b84 Mon Sep 17 00:00:00 2001 From: Oliver Blanthorn Date: Sat, 18 Jul 2026 12:22:32 +0200 Subject: [PATCH] Fix builds in worktrees authors.html assumed there would always be a .git directory, which is not true in worktrees --- scripts/authors.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/authors.sh b/scripts/authors.sh index 415d1d84..c2e58001 100755 --- a/scripts/authors.sh +++ b/scripts/authors.sh @@ -12,7 +12,7 @@ authors="../../build/static/authors.html" sed "/REPLACETHIS/,$ d" authors.html > "$authors" # If we're in a git repo, refresh the cache -if [ -d "../../.git/" ]; then +if git rev-parse --is-inside-work-tree >/dev/null 2>&1; then git shortlog -sn HEAD | cut -c8- | awk '!seen[$0]++' | sed 's/^/

/' | sed 's/$/<\/p>/' > ../../.build_cache/authors fi