From: Amélia Coutard-Sander Date: Wed, 7 Jan 2026 14:02:16 +0000 (+0100) Subject: Fix git repo check (didn't work for bare repos) X-Git-Url: https://git.f4mnq.fr/?a=commitdiff_plain;h=5e069347e51f86715e7fd2ca83e2d2904580665d;p=git-over-gnunet.git Fix git repo check (didn't work for bare repos) --- diff --git a/handle-request.sh b/handle-request.sh index 32785ed..97d8f4c 100755 --- a/handle-request.sh +++ b/handle-request.sh @@ -23,7 +23,7 @@ if test "$comm" != "git-upload-pack"; then exit 1 fi -git -C "$base_path$path" status >/dev/null 2>/dev/null || { echo "Not a git repository." | tee /dev/stderr; exit 1; } +git -C "$base_path$path" rev-parse --git-dir >/dev/null 2>/dev/null || { echo "Not a git repository." | tee /dev/stderr; exit 1; } echo '' exec "$comm" "$base_path$path"