aboutsummaryrefslogtreecommitdiff
path: root/IkiWiki
diff options
context:
space:
mode:
authorJoey Hess <joey@kitenet.net>2013-11-16 20:49:57 -0400
committerJoey Hess <joey@kitenet.net>2013-11-16 20:49:57 -0400
commit49e0841ad5f36adbbc1291488d8e34ef550d0df9 (patch)
tree3ea4454486815227dc93e83c94a48ec9fd3b6ad0 /IkiWiki
parent441002e3e6b7f979eb4ef1d2525add2ea308ba6a (diff)
downloadikiwiki-49e0841ad5f36adbbc1291488d8e34ef550d0df9.tar
ikiwiki-49e0841ad5f36adbbc1291488d8e34ef550d0df9.tar.gz
guard against lastrev being "" just in case
Diffstat (limited to 'IkiWiki')
-rw-r--r--IkiWiki/Render.pm4
1 files changed, 2 insertions, 2 deletions
diff --git a/IkiWiki/Render.pm b/IkiWiki/Render.pm
index 60424bbda..57418f2ed 100644
--- a/IkiWiki/Render.pm
+++ b/IkiWiki/Render.pm
@@ -834,7 +834,7 @@ sub refresh () {
srcdir_check();
run_hooks(refresh => sub { shift->() });
my ($files, $pages, $new, $internal_new, $del, $internal_del, $changed, $internal_changed);
- if (! $config{rebuild} && want_find_changes() && defined $IkiWiki::lastrev) {
+ if (! $config{rebuild} && want_find_changes() && defined $IkiWiki::lastrev && length $IkiWiki::lastrev) {
my ($changed_raw, $del_raw);
($changed_raw, $del_raw, $IkiWiki::lastrev) = $IkiWiki::hooks{rcs}{rcs_find_changes}{call}->($IkiWiki::lastrev);
($files, $pages)=process_changed_files($changed_raw, $del_raw);
@@ -843,7 +843,7 @@ sub refresh () {
($files, $pages)=find_src_files();
}
if (want_find_changes()) {
- if (! defined($IkiWiki::lastrev)) {
+ if (! defined($IkiWiki::lastrev) || ! length $IkiWiki::lastrev) {
$IkiWiki::lastrev=$IkiWiki::hooks{rcs}{rcs_get_current_rev}{call}->();
}
}