From 29bc9314ddff00f2d37d522bf10246b614c4e90d Mon Sep 17 00:00:00 2001 From: Andy Wingo Date: Sun, 13 Apr 2008 00:05:51 +0200 Subject: [PATCH] fix search with no results on deployed tekuti * tekuti/page-helpers.scm: Be patient with git errors. Dunno why they happen, though. --- tekuti/page-helpers.scm | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tekuti/page-helpers.scm b/tekuti/page-helpers.scm index 1873a07..709f44c 100644 --- a/tekuti/page-helpers.scm +++ b/tekuti/page-helpers.scm @@ -253,7 +253,10 @@ (dsu-sort (filter identity - (match-lines (git "grep" "-l" "-F" string master "--" "*/content") + (match-lines (or (false-if-git-error + ;; dunno why git errors sometimes here... + (git "grep" "-l" "-F" string master "--" "*/content")) + "") ":(.+)/content$" (_ key) (post-from-key master key))) post-timestamp