summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--guix/build/git.scm4
1 files changed, 1 insertions, 3 deletions
diff --git a/guix/build/git.scm b/guix/build/git.scm
index 5b90033c4d..669e38cd32 100644
--- a/guix/build/git.scm
+++ b/guix/build/git.scm
@@ -63,9 +63,7 @@ recursively.  Return #t on success, #f otherwise."
             (invoke git-command "checkout" commit)))
       (when recursive?
         ;; Now is the time to fetch sub-modules.
-        (unless (zero? (system* git-command "submodule" "update"
-                                "--init" "--recursive"))
-          (error "failed to fetch sub-modules" url))
+        (invoke git-command "submodule" "update" "--init" "--recursive")
 
         ;; In sub-modules, '.git' is a flat file, not a directory,
         ;; so we can use 'find-files' here.