Remove peeking
gitile/handler.scm
| 154 | 154 | "-")))) | |
| 155 | 155 | ||
| 156 | 156 | (define (name->project project) | |
| 157 | - | (pk 'name->project project) | |
| 158 | 157 | (make-project project (call-with-repo project get-name) | |
| 159 | 158 | (call-with-repo project get-description))) | |
| 160 | 159 | ||
| 161 | 160 | (define (projects) | |
| 162 | 161 | (define (projects-aux dir) | |
| 163 | - | (pk 'opening 'projects 'in dir) | |
| 164 | 162 | (let ((opened-dir (opendir dir))) | |
| 165 | 163 | (let loop ((res '()) (repo (readdir opened-dir))) | |
| 166 | 164 | (cond | |
… | |||
| 168 | 166 | (closedir opened-dir) | |
| 169 | 167 | res) | |
| 170 | 168 | ((file-exists? (string-append dir "/" repo "/git-daemon-export-ok")) | |
| 171 | - | (pk 'found dir '/ repo) | |
| 172 | 169 | (loop | |
| 173 | 170 | (cons | |
| 174 | 171 | (name->project | |
… | |||
| 220 | 217 | (let-values (((project-name path) (find-project-component request))) | |
| 221 | 218 | (match (cons project-name path) | |
| 222 | 219 | (("" . ()) | |
| 223 | - | (pk 'index) | |
| 224 | 220 | (show (index-page (projects) base-git-url index-title intro footer))) | |
| 225 | 221 | (("" . args) | |
| 226 | - | (pk '404 args) | |
| 227 | 222 | (repo-404 "Project not found" "" | |
| 228 | 223 | "-")) | |
| 229 | 224 | ((project-name) | |