]> git.plutz.net Git - shellwiki/commitdiff
prevent git lockup due to missing user.email and user.name
authorPaul Hänsch <paul@plutz.net>
Tue, 22 Aug 2023 18:36:27 +0000 (20:36 +0200)
committerPaul Hänsch <paul@plutz.net>
Tue, 22 Aug 2023 18:36:27 +0000 (20:36 +0200)
index.cgi

index 5d168230371aa30653da759ea9b8f4acbbb0ba0f..a27a75dbdddd133b086b71b9a222434cf10a0811 100755 (executable)
--- 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