~ruther/guix-local

195f0d05c3f64e17e84b2683a7045a14ec578d61 — Ludovic Courtès 8 years ago 179b7ac
git: Work around wrong default argument of 'clone'.

Fixes <https://bugs.gnu.org/29238>.
Reported by Benjamin Andresen <benny@in-ulm.de>.

* guix/git.scm (clone*): Pass second argument to 'clone'.
1 files changed, 4 insertions(+), 1 deletions(-)

M guix/git.scm
M guix/git.scm => guix/git.scm +4 -1
@@ 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)))))