mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-12-23 21:17:11 -05:00
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.
This commit is contained in:
parent
4564782c3d
commit
b1488c7653
1 changed files with 4 additions and 1 deletions
|
@ -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)))))
|
||||
|
||||
|
|
Loading…
Reference in a new issue