Skip to content
Snippets Groups Projects
Unverified Commit b1488c76 authored by Ludovic Courtès's avatar Ludovic Courtès
Browse files

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

This is a followup to 195f0d05.

* guix/git.scm (clone*): Check whether 'clone-init-options' is defined
before using it.
parent 4564782c
No related branches found
No related tags found
No related merge requests found
......@@ -58,7 +58,10 @@ (define (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)))
(if (module-defined? (resolve-interface '(git))
'clone-init-options)
(clone url directory (clone-init-options))
(clone url directory)))
(lambda _
(false-if-exception (rmdir directory)))))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment