Browse Source

git: Work around wrong default argument of 'clone'.

Fixes <https://bugs.gnu.org/29238>.
Reported by Benjamin Andresen <benny@in-ulm.de>.

* guix/git.scm (clone*): Pass second argument to 'clone'.
gn-latest-20200428
Ludovic Courtès 4 years ago
parent
commit
195f0d05c3
No known key found for this signature in database GPG Key ID: 90B11993D9AEBB5
  1. 5
      guix/git.scm

5
guix/git.scm

@ -55,7 +55,10 @@ make sure no empty directory is left behind."
(with-throw-handler #t
(lambda ()
(mkdir-p directory)
(clone url directory))
;; Note: Explicitly pass options to work around the invalid default
;; value in Guile-Git: <https://bugs.gnu.org/29238>.
(clone url directory (clone-init-options)))
(lambda _
(false-if-exception (rmdir directory)))))

Loading…
Cancel
Save