From a13a7efa9fd3bb2fdd2537821b0f687296f8d461 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C8=98tefan=20Talpalaru?= Date: Wed, 27 Nov 2019 19:23:10 +0100 Subject: [PATCH] "update" target: improve submodule sync logic --- makefiles/targets.mk | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/makefiles/targets.mk b/makefiles/targets.mk index c19dde3..1b4f3c5 100644 --- a/makefiles/targets.mk +++ b/makefiles/targets.mk @@ -63,8 +63,7 @@ $(NIM_BINARY) update-common: | sanity-checks - [[ -e vendor/go/src/github.com/libp2p/go-libp2p-daemon ]] && \ cd vendor/go/src/github.com/libp2p/go-libp2p-daemon && \ git reset --hard -q HEAD - git submodule sync --quiet --recursive - git submodule update --init --recursive + git submodule update --init --recursive || true # changing URLs in a submodule's submodule means we have to sync and update twice git submodule sync --quiet --recursive git submodule update --init --recursive