ikiwiki/IkiWiki
Joey Hess 6294894f31 Fix crash that can occur when only_committed_changes is set and a file is deleted from the underlay.
srcfile_stat got called on a file from the underlay that no longer existed.

I am not 100% sure of the circumstances of that; I was able to reproduce
the bug but neglected to snapshot the tree, and then accidentially
got it to stop crashing. I know that a transient tag page got deleted using
the web interface to trigger the crash.

It seems that process_changed_files must have returned the file, despite it
being deleted. And since the file was not checked into git, it seems it
must have not been included in @IkiWiki::underlayfiles, which would have
caused process_changed_files to not return it.

I do not know why a transient tag page would not be in
@IkiWiki::underlayfiles. There is a bug here that I don't understand.

This is just a workaround -- run srcfile_stat such that it won't crash,
and if it is unable to stat a file, find_changed knows it's not changed,
so it's ok to skip it.

Also made find_new_files run srcfile_stat such that it won't crash, just
because I was there.
2014-09-26 18:55:09 -04:00
..
Plugin img: raise an error if we cannot find the image's size 2014-09-16 10:00:40 +01:00
Setup Merge remote-tracking branch 'schmonz/portability' 2012-01-30 15:20:54 -04:00
CGI.pm do not double-decode unicode in CGI forms 2014-09-09 23:11:51 -04:00
Receive.pm
Render.pm Fix crash that can occur when only_committed_changes is set and a file is deleted from the underlay. 2014-09-26 18:55:09 -04:00
Setup.pm Detect plugins with a broken getsetup and warn. 2013-03-04 13:19:05 -04:00
UserInfo.pm
Wrapper.pm More cautious escaping of environment values. 2014-09-14 20:07:43 -04:00