]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
ci: Drop $(CI_SUBMODULES)
authorAndrea Bolognani <abologna@redhat.com>
Thu, 15 Aug 2019 14:21:18 +0000 (16:21 +0200)
committerAndrea Bolognani <abologna@redhat.com>
Wed, 21 Aug 2019 16:58:10 +0000 (18:58 +0200)
We only use the list of submodules once, so no need to
store it in a variable.

Signed-off-by: Andrea Bolognani <abologna@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
Makefile.ci

index ac859dcb9567a94c44a697b5da1c7a1c8ba9294f..b5d328ee8cab77aebeb08a341748a420390813d8 100644 (file)
@@ -42,10 +42,6 @@ CI_MAKE_ARGS =
 # Any extra arguments to pass to configure
 CI_CONFIGURE_ARGS =
 
-# Avoid pulling submodules over the network by locally
-# cloning them
-CI_SUBMODULES = $(shell git submodule | awk '{ print $$2 }')
-
 # Location of the container images we're going to pull
 # Can be useful to overridde to use a locally built
 # image instead
@@ -186,7 +182,7 @@ ci-prepare-tree: ci-check-engine
                cp /etc/group $(CI_SCRATCHDIR); \
                echo "Cloning $(CI_GIT_ROOT) to $(CI_HOST_SRCDIR)"; \
                git clone $(CI_GIT_ARGS) $(CI_GIT_ROOT) $(CI_HOST_SRCDIR) || exit 1; \
-               for mod in $(CI_SUBMODULES) ; \
+               for mod in $$(git submodule | awk '{ print $$2 }') ; \
                do \
                        test -f $(CI_GIT_ROOT)/$$mod/.git || continue ; \
                        echo "Cloning $(CI_GIT_ROOT)/$$mod to $(CI_HOST_SRCDIR)/$$mod"; \