Browse Source

git: Check whether 'clone-init-options' is defined.

This is a followup to 195f0d05c3.

* guix/git.scm (clone*): Check whether 'clone-init-options' is defined
before using it.
version-0.14.0
Ludovic Courtès 5 years ago
parent
commit
b1488c7653
No known key found for this signature in database GPG Key ID: 90B11993D9AEBB5
  1. 5
      guix/git.scm

5
guix/git.scm

@ -58,7 +58,10 @@ make sure no empty directory is left behind."
;; 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)))
(if (module-defined? (resolve-interface '(git))
'clone-init-options)
(clone url directory (clone-init-options))
(clone url directory)))
(lambda _
(false-if-exception (rmdir directory)))))

Loading…
Cancel
Save