aboutsummaryrefslogtreecommitdiff
path: root/ikiwiki-makerepo
diff options
context:
space:
mode:
authorSimon McVittie <smcv@debian.org>2015-11-30 19:34:04 +0000
committerSimon McVittie <smcv@debian.org>2015-11-30 19:34:04 +0000
commited1e1ebe70c8aec06a759d8cd0168f242d28ac17 (patch)
tree46cd34fdd66fd6d55d74a681cf116ed3792c0119 /ikiwiki-makerepo
parent719612a9764f819a46e756994fc9db7e33031b86 (diff)
downloadikiwiki-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-xikiwiki-makerepo6
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"