Skip to content

Instantly share code, notes, and snippets.

@myl7
Created February 10, 2021 12:53
Show Gist options
  • Save myl7/b46633bb44fb6f70dccb7b3c3f10d193 to your computer and use it in GitHub Desktop.
Save myl7/b46633bb44fb6f70dccb7b3c3f10d193 to your computer and use it in GitHub Desktop.
Fix git submodule for public repo in AWS Amplify
#!/bin/bash
set -euo pipefail
# Fix git submodule for AWS Amplify build
git config --file=.gitmodules submodule.images.url <repo-http-url>
git config --file=.gitmodules submodule.images.branch <branch>
git submodule sync --recursive
git submodule update --init --remote --recursive
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment