- return if $ensured_committer;
-
- my $name = join('', run_or_non("git", "config", "user.name"));
- my $email = join('', run_or_non("git", "config", "user.email"));
-
- if (! length $name) {
- run_or_die("git", "config", "user.name", "IkiWiki");
+ if (! length $ENV{GIT_AUTHOR_NAME} || ! length $ENV{GIT_COMMITTER_NAME}) {
+ my $name = join('', run_or_non("git", "config", "user.name"));
+ if (! length $name) {
+ run_or_die("git", "config", "user.name", "IkiWiki");
+ }