diff --git a/tools/mkauthors b/tools/mkauthors index 66e9ac0c0..3d6753c80 100755 --- a/tools/mkauthors +++ b/tools/mkauthors @@ -54,7 +54,9 @@ for my $author (sort { $authors{$b} <=> $authors{$a} or lc($a) cmp lc($b) } keys } close $fh; -execute 'git', 'commit', - '--author', 'InspIRCd Robot ', - '--message', 'Update author list.', - '--', $author_file; +if ($ENV{MKAUTHORS_COMMIT} // 1) { + execute 'git', 'commit', + '--author', 'InspIRCd Robot ', + '--message', 'Update author list.', + '--', $author_file; +} diff --git a/tools/mkheaders b/tools/mkheaders index 27577fbbc..e254fb415 100755 --- a/tools/mkheaders +++ b/tools/mkheaders @@ -152,7 +152,9 @@ for my $path (@paths) { } } -execute 'git', 'commit', - '--author', 'InspIRCd Robot ', - '--message', 'Update copyright headers.', - '--', @updated; +if ($ENV{MKHEADERS_COMMIT} // 1) { + execute 'git', 'commit', + '--author', 'InspIRCd Robot ', + '--message', 'Update copyright headers.', + '--', @updated; +}