mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-12-26 22:38:07 -05:00
git-download: Remove call to 'canonicalize-path'.
* guix/git-download.scm (git-predicate): Remove call to 'canonicalize-path' since this could lead to discrepancies. For instance it broke 'make update-guix-package' since it passes a non-canonical directory name.
This commit is contained in:
parent
1398a43816
commit
228a3982df
1 changed files with 6 additions and 1 deletions
|
@ -191,7 +191,12 @@ (define (git-predicate directory)
|
|||
result)))
|
||||
vlist-null
|
||||
files))
|
||||
(prefix-length (+ 1 (string-length (canonicalize-path directory))))
|
||||
|
||||
;; Note: For this to work we must *not* call 'canonicalize-path' on
|
||||
;; DIRECTORY or we would get discrepancies of the returned lambda is
|
||||
;; called with a non-canonical file name.
|
||||
(prefix-length (+ 1 (string-length directory)))
|
||||
|
||||
(status (close-pipe pipe)))
|
||||
(and (zero? status)
|
||||
(lambda (file stat)
|
||||
|
|
Loading…
Reference in a new issue