From 6b4a4ccca1f8a7b56389edded90a7ed532ccff43 Mon Sep 17 00:00:00 2001 From: Jesse Rosenberger Date: Mon, 20 Mar 2017 20:34:55 +0200 Subject: [PATCH] Aggressively prevent CircleCI from using the wrong cache. https://discuss.circleci.com/t/git-submodule-url-isnt-playing-nice-with-the-cache/549/3 --- circle.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/circle.yml b/circle.yml index 27e599e8a9..0241b50520 100644 --- a/circle.yml +++ b/circle.yml @@ -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: