Created
January 21, 2016 00:20
-
-
Save tbveralrud/4957089570ddbe49dea9 to your computer and use it in GitHub Desktop.
(Temporary) Fix for submodule update error on CircleCI
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# CircleCI failed to build a git submodule update step. | |
# Tracked it down to partially complete .git/modules existing in our source cache. | |
# This removes the .git/modules directory before the submodule update. | |
# The error: | |
# $ git submodule update --init | |
# git submodule update --init returned exit code 128 | |
# fatal: Not a git repository: ../.git/modules/<project> Action failed: git submodule update --init | |
checkout: | |
post: | |
- rm -rf `git rev-parse --show-toplevel`/.git/modules | |
- git submodule update —init |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment