"update" target: improve submodule sync logic

This commit is contained in:
Ștefan Talpalaru 2019-11-27 19:23:10 +01:00
parent e31d0fbc90
commit a13a7efa9f
No known key found for this signature in database
GPG Key ID: CBF7934204F1B6F9
1 changed files with 1 additions and 2 deletions

View File

@ -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