Fix startup issue
gitile/handler.scm
| 150 | 150 | (make-project project (call-with-repo project get-name) | |
| 151 | 151 | (call-with-repo project get-description))) | |
| 152 | 152 | ||
| 153 | - | (define projects | |
| 153 | + | (define (projects) | |
| 154 | 154 | (let ((dir (opendir (config-repositories config)))) | |
| 155 | 155 | (let loop ((res '()) (repo (readdir dir))) | |
| 156 | 156 | (if (eof-object? repo) | |
… | |||
| 175 | 175 | (pk 'body (if body (utf8->string body) body)) | |
| 176 | 176 | (match (request-path-components request) | |
| 177 | 177 | (() | |
| 178 | - | (show (index-page projects base-git-url index-title intro footer))) | |
| 178 | + | (show (index-page (projects) base-git-url index-title intro footer))) | |
| 179 | 179 | ((project-name) | |
| 180 | 180 | (call-with-repo project-name | |
| 181 | 181 | (lambda (repo) | |