aboutsummaryrefslogtreecommitdiff
path: root/IkiWiki/Plugin
diff options
context:
space:
mode:
authorJoey Hess <joey@kitenet.net>2013-07-10 21:52:43 -0400
committerJoey Hess <joey@kitenet.net>2013-07-10 21:52:49 -0400
commit946af13ae60da6a8688e66bbe17dd1a012e5d747 (patch)
tree8b9bf923bb226c0a6a3a770d38ab71d1c6b1ae9b /IkiWiki/Plugin
parentb162563dc1c6126953e66cdcc508f389b9d39d8e (diff)
downloadikiwiki-946af13ae60da6a8688e66bbe17dd1a012e5d747.tar
ikiwiki-946af13ae60da6a8688e66bbe17dd1a012e5d747.tar.gz
Pass --no-edit when used with git 1.7.8 and newer.
Not sure if this is needed to avoid it trying to run an editor. Probably there is never a controlling terminal and probably git notices and does nothing. But I'm just copying what I have in git-annex assistant here. (Although with a much worse git version comparion, that only really works due to luck.)
Diffstat (limited to 'IkiWiki/Plugin')
-rw-r--r--IkiWiki/Plugin/git.pm3
1 files changed, 3 insertions, 0 deletions
diff --git a/IkiWiki/Plugin/git.pm b/IkiWiki/Plugin/git.pm
index 0852ce10d..bbdcbdba8 100644
--- a/IkiWiki/Plugin/git.pm
+++ b/IkiWiki/Plugin/git.pm
@@ -550,6 +550,9 @@ sub rcs_commit_helper (@) {
# Force git to allow empty commit messages.
# (If this version of git supports it.)
my ($version)=`git --version` =~ /git version (.*)/;
+ if ($version ge "1.7.8") {
+ push @opts, "--allow-empty-message", "--no-edit";
+ }
if ($version ge "1.7.2") {
push @opts, "--allow-empty-message";
}