[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
02/04: git-download: Use 'invoke'.
From: |
guix-commits |
Subject: |
02/04: git-download: Use 'invoke'. |
Date: |
Sat, 5 Jan 2019 18:22:11 -0500 (EST) |
civodul pushed a commit to branch master
in repository guix.
commit c070d1423fcbdc48e749545ecdf277404ab7d77d
Author: Ludovic Courtès <address@hidden>
Date: Sat Jan 5 23:10:04 2019 +0100
git-download: Use 'invoke'.
* guix/build/git.scm (git-fetch): Use 'invoke' instead of 'system*' for
"git submodule update".
---
guix/build/git.scm | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/guix/build/git.scm b/guix/build/git.scm
index 5b90033..669e38c 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.