Submodule initialization with private sumodule fails
See original GitHub issueHi, I am testing v2. My goal is to initialize submodules behind a private repo with the whole history.
I am not sure if I am doing this right, but I am doing this.
- uses: actions/checkout@v2
with:
token: ${{ secrets.CI_PAT }}
submodules: 'true'
fetch-depth: 0
And receiving this output.
Run actions/checkout@v2
/usr/bin/docker exec cf6073467e49ed136c89b40c65140167d4da6b133a966b11d7b7277f30c084cb sh -c "cat /etc/*release | grep ^ID"
Syncing repository: my_company/my_repo
Getting Git version info
Deleting the contents of '/__w/my_repo/my_repo'
Initializing the repository
Disabling automatic garbage collection
Setting up auth
Fetching the repository
/usr/bin/git -c protocol.version=2 fetch --prune --progress --no-recurse-submodules origin +refs/heads/*:refs/remotes/origin/* +refs/tags/*:refs/tags/* +eebee8254a6b64f5edb7510c9a2fbdebe78873bb:refs/remotes/pull/156/merge
remote: Repository not found.
##[error]fatal: repository 'https://github.com/my_company/my_repo/' not found
The process '/usr/bin/git' failed with exit code 128
Waiting 20 seconds before trying again
/usr/bin/git -c protocol.version=2 fetch --prune --progress --no-recurse-submodules origin +refs/heads/*:refs/remotes/origin/* +refs/tags/*:refs/tags/* +eebee8254a6b64f5edb7510c9a2fbdebe78873bb:refs/remotes/pull/156/merge
remote: Repository not found.
##[error]fatal: repository 'https://github.com/my_company/my_repo/' not found
The process '/usr/bin/git' failed with exit code 128
Waiting 11 seconds before trying again
The repo and the company name was renamed here, but they are good The browser opens the (right) URL.
Issue Analytics
- State:
- Created 3 years ago
- Comments:7
Top Results From Across the Web
git - Cannot initialize submodule (branch of private repository)
git clone --recurse-submodules https://github.com/vishvAsa/rahaShTippanyaH.git succeds just fine - except for the submodule content. The below ...
Read more >Unable to clone private GitHub submodule repository
Hi! I'm trying to create a Build pipeline for my project. The main repository is hosted in the Azure Repo Git while a...
Read more >Git submodule clone failure for private repository [Bitbucket]
My build is failing on: $ git submodule update --init --recursive The submodule is owned under the same umbrella of the main repositor…...
Read more >Jenkins can't find private git submodules - Ask a question
> git.exe submodule update --init --recursive Source/TesserconCore # timeout=10 ERROR: Checkout failed hudson.plugins.git.GitException: Command ...
Read more >Configuration problems for CI builds with Git private submodule
But it's still failing with the same error messages. # .gitmodules [submodule "source"] path = source url = git@gitlab.com:rivy/blog.content.git ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Yeap, I tested this yesterday as well and it is working now. My issue is that my submodule is private.
But this is working as well now.
Someone told that V2 does not implement submodule but this info is not on README. So it will be nice to put it there if it is right.