Fix startup issue

Julien LepillerWed Aug 25 14:15:31+0200 2021

d263330

Fix startup issue

gitile/handler.scm

150150
    (make-project project (call-with-repo project get-name)
151151
                  (call-with-repo project get-description)))
152152
153-
  (define projects
153+
  (define (projects)
154154
    (let ((dir (opendir (config-repositories config))))
155155
      (let loop ((res '()) (repo (readdir dir)))
156156
        (if (eof-object? repo)

175175
       (pk 'body (if body (utf8->string body) body))
176176
       (match (request-path-components request)
177177
         (()
178-
          (show (index-page projects base-git-url index-title intro footer)))
178+
          (show (index-page (projects) base-git-url index-title intro footer)))
179179
         ((project-name)
180180
          (call-with-repo project-name
181181
            (lambda (repo)