aws / git-remote-codecommit

An implementation of Git Remote Helper that makes it easier to interact with AWS CodeCommit
Apache License 2.0
271 stars 38 forks source link

Support submodules #18

Open drmikecrowe opened 4 years ago

drmikecrowe commented 4 years ago

Attempting to add a submodule via codecommit:// scheme results in:

❯ git clone codecommit://documentation docs
Cloning into 'docs'...
fatal: unable to access 'https://git-codecommit.us-east-1.amazonaws.com/v1/repos/documentation/': Protocol "https" not supported or disabled in libcurl
gtux commented 3 years ago

Any update on this?

J11522 commented 3 years ago

You can achieve this by allowing the helper for submodules. git config --global --add protocol.codecommit.allow always

somiron commented 3 years ago

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

michal-turzynski commented 2 years ago

Same problem here.

This didn't help me unfortunately: git config --global --add protocol.codecommit.allow always

henalbrod commented 2 years ago

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.