Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save coldnew/eab0fe49be3172ca7ab6 to your computer and use it in GitHub Desktop.
Save coldnew/eab0fe49be3172ca7ab6 to your computer and use it in GitHub Desktop.
(Temporary) Fix for submodule update error on CircleCI
# 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