Created
February 10, 2021 12:53
-
-
Save myl7/b46633bb44fb6f70dccb7b3c3f10d193 to your computer and use it in GitHub Desktop.
Fix git submodule for public repo in AWS Amplify
This file contains hidden or 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
#!/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