]> git.vanrenterghem.biz Git - git.ikiwiki.info.git/blobdiff - IkiWiki/Plugin/git.pm
Deal with git behavior change in 1.7.8 and newer that broke support for commits with...
[git.ikiwiki.info.git] / IkiWiki / Plugin / git.pm
index 3879abeae5b20e05d4f9c2990c270c6943982b65..0852ce10d35c403d3f744269848d408c411d11f2 100644 (file)
@@ -550,7 +550,10 @@ 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.5.4") {
+               if ($version ge "1.7.2") {
+                       push @opts, "--allow-empty-message";
+               }
+               elsif ($version ge "1.5.4") {
                        push @opts, '--cleanup=verbatim';
                }
                else {