File tree Expand file tree Collapse file tree 2 files changed +13
-6
lines changed Expand file tree Collapse file tree 2 files changed +13
-6
lines changed Original file line number Diff line number Diff line change @@ -35,7 +35,8 @@ csc -static -unit listicles -cJ listicles.scm
35
35
36
36
echo " Building private_comments executable..."
37
37
38
- csc -link masufiles \
38
+ csc -link masutils \
39
+ -link masufiles \
39
40
-link pathname-expand \
40
41
-static private_comments.scm
41
42
Original file line number Diff line number Diff line change 33
33
(import spiffy-request-vars)
34
34
(import uri-common)
35
35
(import shell)
36
+ (import masutils)
36
37
(import masufiles)
37
38
38
39
; ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
226
227
;
227
228
(define (handle-comment add-or-delete params )
228
229
; TODO Update headers to specify
229
- (if (has-required-keys? params)
230
- (let ((project-hash (cdr (assoc 'project_name_hash params)))
231
- (file-path-hash (cdr (assoc 'file_path_hash params)))
232
- (line-no (cdr (assoc 'line_number params)))
233
- (treeish (cdr (assoc 'treeish params))))
230
+ (if (and
231
+ (has-required-keys? params)
232
+ (not (or
233
+ (== (alist-ref 'treeish params) " 00000000" )
234
+ (null? (alist-ref 'treeish params)))))
235
+
236
+ (let ((project-hash (alist-ref 'project_name_hash params))
237
+ (file-path-hash (alist-ref 'file_path_hash params))
238
+ (line-no (alist-ref 'line_number params))
239
+ (treeish (alist-ref 'treeish params)))
234
240
(let* (
235
241
(project-dir (list->path (list base-directory project-hash)))
236
242
(treeish-dir (list->path (list base-directory project-hash treeish)))
You can’t perform that action at this time.
0 commit comments