diff options
author | http://www.cse.unsw.edu.au/~willu/ <http://www.cse.unsw.edu.au/~willu/@web> | 2008-08-02 09:43:10 -0400 |
---|---|---|
committer | Joey Hess <joey@kitenet.net> | 2008-08-02 09:43:10 -0400 |
commit | f6a401bf88c47610bc8f803603870fbafec19316 (patch) | |
tree | 81452c7a7fe5a10e8b7c5abc15f90a3bd83b3159 /doc/todo | |
parent | 25c35b6e90c984540b1f5e6ea9755ce1e3e36d13 (diff) |
Add simple patch to silence a warning when using monotone
Diffstat (limited to 'doc/todo')
-rw-r--r-- | doc/todo/Silence_monotone_warning.mdwn | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/doc/todo/Silence_monotone_warning.mdwn b/doc/todo/Silence_monotone_warning.mdwn new file mode 100644 index 000000000..db8765748 --- /dev/null +++ b/doc/todo/Silence_monotone_warning.mdwn @@ -0,0 +1,15 @@ +A quick [[patch]] to silence a [[rcs/monotone]] warning I started seeing: + + diff --git a/IkiWiki/Plugin/monotone.pm b/IkiWiki/Plugin/monotone.pm + index 4b9be31..9d4e280 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"), |