]> git.vanrenterghem.biz Git - git.ikiwiki.info.git/blobdiff - IkiWiki/Plugin/git.pm
cutpaste: Fix bug that occured in some cases involving inlines when text was pasted...
[git.ikiwiki.info.git] / IkiWiki / Plugin / git.pm
index 899ac4a85f32421f3a6554e726562eb293e8499c..fd57ce1e466de034e457a365a13f8960d04957f3 100644 (file)
@@ -46,7 +46,9 @@ sub checkconfig () {
        }
 
        if (defined $config{git_test_receive_wrapper} &&
        }
 
        if (defined $config{git_test_receive_wrapper} &&
-           length $config{git_test_receive_wrapper}) {
+           length $config{git_test_receive_wrapper} &&
+           defined $config{untrusted_committers} &&
+           @{$config{untrusted_committers}}) {
                push @{$config{wrappers}}, {
                        test_receive => 1,
                        wrapper => $config{git_test_receive_wrapper},
                push @{$config{wrappers}}, {
                        test_receive => 1,
                        wrapper => $config{git_test_receive_wrapper},
@@ -460,7 +462,7 @@ sub rcs_update () {
        # Update working directory.
 
        if (length $config{gitorigin_branch}) {
        # Update working directory.
 
        if (length $config{gitorigin_branch}) {
-               run_or_cry('git', 'pull', $config{gitorigin_branch});
+               run_or_cry('git', 'pull', '--prune', $config{gitorigin_branch});
        }
 }
 
        }
 }