aboutsummaryrefslogtreecommitdiff
path: root/guix/git.scm
diff options
context:
space:
mode:
Diffstat (limited to 'guix/git.scm')
-rw-r--r--guix/git.scm5
1 files changed, 4 insertions, 1 deletions
diff --git a/guix/git.scm b/guix/git.scm
index ad4fc30c4b..7a83b56216 100644
--- a/guix/git.scm
+++ b/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)))))