git-download: Fix recursive checkouts.

* guix/git-download.scm (git-fetch)<build>: Fix match on INPUTS, which may
contain package outputs.
This commit is contained in:
Eric Bavier 2018-03-15 23:25:01 -05:00
parent 109b2f7c93
commit be95bcf088
No known key found for this signature in database
GPG Key ID: FD73CAC719D32566
1 changed files with 1 additions and 1 deletions

View File

@ -109,7 +109,7 @@ HASH-ALGO (a symbol). Use NAME as the file name, or a generic name if #f."
;; grep, etc. to be in $PATH.
(set-path-environment-variable "PATH" '("bin")
(match '#+inputs
(((names dirs) ...)
(((names dirs outputs ...) ...)
dirs)))
(or (git-fetch (getenv "git url") (getenv "git commit")