guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

01/02: git: Work around wrong default argument of 'clone'.


From: Ludovic Courtès
Subject: 01/02: git: Work around wrong default argument of 'clone'.
Date: Fri, 10 Nov 2017 07:08:01 -0500 (EST)

civodul pushed a commit to branch master
in repository guix.

commit 195f0d05c3f64e17e84b2683a7045a14ec578d61
Author: Ludovic Courtès <address@hidden>
Date:   Fri Nov 10 12:59:55 2017 +0100

    git: Work around wrong default argument of 'clone'.
    
    Fixes <https://bugs.gnu.org/29238>.
    Reported by Benjamin Andresen <address@hidden>.
    
    * guix/git.scm (clone*): Pass second argument to 'clone'.
---
 guix/git.scm | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/guix/git.scm b/guix/git.scm
index e73f4b9..ad4fc30 100644
--- a/guix/git.scm
+++ b/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)))))
 



reply via email to

[Prev in Thread] Current Thread [Next in Thread]