diff options
author | Simon McVittie <smcv@debian.org> | 2015-11-30 19:34:04 +0000 |
---|---|---|
committer | Simon McVittie <smcv@debian.org> | 2015-11-30 19:34:04 +0000 |
commit | ed1e1ebe70c8aec06a759d8cd0168f242d28ac17 (patch) | |
tree | 46cd34fdd66fd6d55d74a681cf116ed3792c0119 /ikiwiki-makerepo | |
parent | 719612a9764f819a46e756994fc9db7e33031b86 (diff) | |
download | ikiwiki-ed1e1ebe70c8aec06a759d8cd0168f242d28ac17.tar ikiwiki-ed1e1ebe70c8aec06a759d8cd0168f242d28ac17.tar.gz |
git: if no committer identity is known, set it to "IkiWiki <ikiwiki.info>" in .git/config
This resolves commit errors in versions of git that require a non-trivial
committer identity.
Diffstat (limited to 'ikiwiki-makerepo')
-rwxr-xr-x | ikiwiki-makerepo | 6 |
1 files changed, 6 insertions, 0 deletions
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" |