From 40d6ccbadbb080090c2551d0ba6a6be4b4abe85e Mon Sep 17 00:00:00 2001
From: Joey Hess <joey@kitenet.net>
Date: Thu, 28 Aug 2014 19:08:09 -0700
Subject: [PATCH] Make --no-gettime work in initial build. Closes: #755075

---
 IkiWiki.pm       | 3 ++-
 debian/changelog | 6 ++++++
 2 files changed, 8 insertions(+), 1 deletion(-)

diff --git a/IkiWiki.pm b/IkiWiki.pm
index e5da04a3b..cd4ac815d 100644
--- a/IkiWiki.pm
+++ b/IkiWiki.pm
@@ -1819,7 +1819,8 @@ sub loadindex () {
 			open ($in, "<", "$config{wikistatedir}/indexdb") || return;
 		}
 		else {
-			$config{gettime}=1; # first build
+			# gettime on first build
+			$config{gettime}=1 unless defined $config{gettime};
 			return;
 		}
 	}
diff --git a/debian/changelog b/debian/changelog
index 9f9a9902a..c76cd18ba 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,9 @@
+ikiwiki (3.20140816) UNRELEASED; urgency=medium
+
+  * Make --no-gettime work in initial build. Closes: #755075
+
+ -- Joey Hess <joeyh@debian.org>  Thu, 28 Aug 2014 19:07:50 -0700
+
 ikiwiki (3.20140815) unstable; urgency=medium
 
   * Add google back to openid selector. Apparently this has gotten a stay
-- 
2.39.5