From: Paul Hänsch Date: Tue, 22 Aug 2023 18:36:27 +0000 (+0200) Subject: prevent git lockup due to missing user.email and user.name X-Git-Url: https://git.plutz.net/?a=commitdiff_plain;h=9684cabf3651df8369d71c7a60e9235730dbe978;p=shellwiki prevent git lockup due to missing user.email and user.name --- 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