From 9684cabf3651df8369d71c7a60e9235730dbe978 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Paul=20H=C3=A4nsch?= Date: Tue, 22 Aug 2023 20:36:27 +0200 Subject: [PATCH] prevent git lockup due to missing user.email and user.name --- index.cgi | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/index.cgi b/index.cgi index 5d16823..a27a75d 100755 --- a/index.cgi +++ b/index.cgi @@ -43,6 +43,10 @@ if [ "$REV_PAGES" = true -a ! -f "$_DATA/.gitignore" ]; then && printf '**/#attachments/\n' >>"$_DATA/.gitignore" git init "$_DATA" git -C "$_DATA" add .gitignore + printf '%s\n' "" "[user]" \ + "email = \"shellwiki@localhost\"" \ + "name = \"Shellwiki\"" \ + >>"$_DATA/.git/config" git -C "$_DATA" commit -m 'initialization' -- .gitignore fi 1>&2 -- 2.39.2