Git submodule codecommit
Asked Answered
A

1

5

I have two repositories in AWS Codecommit and I want to add the one repo as submodule into the other repositories. The two repos are located in a role, not in the root account

.gitmodules (File in Repo1)

[submodule "submodule"]
path = sub/module
url = codecommit://Repo2

With

git submodule update

I get

fatal: transport 'codecommit' not allowed
fatal: clone of 'codecommit://Repo2' into submodule path 'sub/module' failed

And I cannot use the HTTPS because I don't know how to switch a role with HTTPS.

Alliterative answered 20/8, 2020 at 14:50 Comment(0)
W
13

The secret is to configure git to always use the transport

git config --global --add protocol.codecommit.allow always
Whippoorwill answered 25/9, 2020 at 14:29 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.