Open drmikecrowe opened 4 years ago
Any update on this?
You can achieve this by allowing the helper for submodules.
git config --global --add protocol.codecommit.allow always
What is the fix if the git repo and submodules are hosted in a different AWS account. Pls see below the messages I get in this case.
Cloning into '(path)'...
fatal: repository 'https://git-codecommit.us-east-1.amazonaws.com/v1/repos/my-repo/' not found
fatal: clone of 'codecommit://my-repo' into submodule path 'somePath' failed
Failed to clone 'myGitPath' a second time, aborting
PS: The repo was cloned using git-remote-codecommit
Same problem here.
This didn't help me unfortunately: git config --global --add protocol.codecommit.allow always
You can achieve this by allowing the helper for submodules.
git config --global --add protocol.codecommit.allow always
This worked fine for me, but I made a pervious step by replacing the "https://git-host-name/repo-name" by "codecommit://repo-name" in the .gitmodules file.
Attempting to add a submodule via
codecommit://
scheme results in: