From ed1e1ebe70c8aec06a759d8cd0168f242d28ac17 Mon Sep 17 00:00:00 2001 From: Simon McVittie Date: Mon, 30 Nov 2015 19:34:04 +0000 Subject: git: if no committer identity is known, set it to "IkiWiki " in .git/config This resolves commit errors in versions of git that require a non-trivial committer identity. --- ikiwiki-makerepo | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'ikiwiki-makerepo') diff --git a/ikiwiki-makerepo b/ikiwiki-makerepo index c3a13c214..f1c44067e 100755 --- a/ikiwiki-makerepo +++ b/ikiwiki-makerepo @@ -85,6 +85,12 @@ git) cd "$srcdir" git init + if [ -z "$(git config user.name)" ]; then + git config user.name IkiWiki + fi + if [ -z "$(git config user.email)" ]; then + git config user.email ikiwiki.info + fi echo /.ikiwiki > .gitignore git add . git commit -m "initial commit" -- cgit v1.2.3