Aggressively prevent CircleCI from using the wrong cache.

https://discuss.circleci.com/t/git-submodule-url-isnt-playing-nice-with-the-cache/549/3
This commit is contained in:
Jesse Rosenberger
2017-03-20 20:34:55 +02:00
parent d9c3f80dbf
commit b2f8b7ea09

View File

@@ -1,6 +1,8 @@
checkout:
post:
- git submodule update --init
# https://discuss.circleci.com/t/git-submodule-url-isnt-playing-nice-with-the-cache/549/3
- git submodule sync
- git submodule update --init --recursive || (rm -fr .git/config .git/modules && git submodule deinit -f . && git submodule update --init --recursive)
dependencies:
pre: