Skip to content

Instantly share code, notes, and snippets.

@tbveralrud
Created January 21, 2016 00:20
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save tbveralrud/4957089570ddbe49dea9 to your computer and use it in GitHub Desktop.
Save tbveralrud/4957089570ddbe49dea9 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