Add simple patch to silence a warning when using monotone

master
Joey Hess 2008-08-04 15:00:47 -04:00
parent 6f2d1536b8
commit 6e2f9e97f3
2 changed files with 3 additions and 1 deletions

View File

@ -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"),

View File

@ -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]]