Fix path shortening for missing blame information.
This commit is contained in:
parent
68460e72c7
commit
a13332f3ae
|
@ -44,8 +44,9 @@
|
||||||
(blame-positive b) (blame-negative b)
|
(blame-positive b) (blame-negative b)
|
||||||
(blame-contract b) (blame-value b) (blame-source b)))
|
(blame-contract b) (blame-value b) (blame-source b)))
|
||||||
|
|
||||||
;; (sequenceof (U path-string? submodule-path)) -> same
|
;; (sequenceof (U path-string? submodule-path #f)) -> same
|
||||||
(define (shorten-paths ps)
|
(define (shorten-paths ps*)
|
||||||
|
(define ps (for/list ([p ps*] #:when p) p)) ; remove non-paths
|
||||||
;; zeroth pass, chop off submodule parts, to put back later
|
;; zeroth pass, chop off submodule parts, to put back later
|
||||||
(define submodules ; (listof (U submodule-part #f))
|
(define submodules ; (listof (U submodule-part #f))
|
||||||
(for/list ([p ps])
|
(for/list ([p ps])
|
||||||
|
|
Loading…
Reference in New Issue
Block a user