From 6e2f9e97f3eb2e8e7ecdc2bdcf053a1323df4af8 Mon Sep 17 00:00:00 2001 From: Joey Hess Date: Mon, 4 Aug 2008 15:00:47 -0400 Subject: [PATCH 1/1] Add simple patch to silence a warning when using monotone --- IkiWiki/Plugin/monotone.pm | 2 +- doc/todo/Silence_monotone_warning.mdwn | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/IkiWiki/Plugin/monotone.pm b/IkiWiki/Plugin/monotone.pm index 40a41c765..f31a8606b 100644 --- a/IkiWiki/Plugin/monotone.pm +++ b/IkiWiki/Plugin/monotone.pm @@ -55,7 +55,7 @@ sub checkconfig () { #{{{ error("Monotone version too old, is $version but required 0.38"); } - if (length $config{mtn_wrapper}) { + if (defined $config{mtn_wrapper} && length $config{mtn_wrapper}) { push @{$config{wrappers}}, { wrapper => $config{mtn_wrapper}, wrappermode => (defined $config{mtn_wrappermode} ? $config{mtn_wrappermode} : "06755"), diff --git a/doc/todo/Silence_monotone_warning.mdwn b/doc/todo/Silence_monotone_warning.mdwn index db8765748..e3f0224c2 100644 --- a/doc/todo/Silence_monotone_warning.mdwn +++ b/doc/todo/Silence_monotone_warning.mdwn @@ -13,3 +13,5 @@ A quick [[patch]] to silence a [[rcs/monotone]] warning I started seeing: push @{$config{wrappers}}, { wrapper => $config{mtn_wrapper}, wrappermode => (defined $config{mtn_wrappermode} ? $config{mtn_wrappermode} : "06755"), + +> Thanks, [[done]] -- 2.44.0