Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Checkout@v2 fails without git submodules #610

Open
mkuligow opened this issue Oct 19, 2021 · 3 comments · May be fixed by #833
Open

Checkout@v2 fails without git submodules #610

mkuligow opened this issue Oct 19, 2021 · 3 comments · May be fixed by #833

Comments

@mkuligow
Copy link

After adding submodules support, checkout action fails on single repository. Roll back to version 2.0.0 fix the problem

/usr/bin/git submodule foreach --recursive git config --local --name-only --get-regexp 'core\.sshCommand' && git config --local --unset-all 'core.sshCommand' || : Error: fatal: No url found for submodule path 'MY_SINGLE_REPO' in .gitmodules Error: The process '/usr/bin/git' failed with exit code 128

@GSvensk
Copy link

GSvensk commented Oct 19, 2021

Seems to be due to the release of v2.3.5, even v2.3.4 works fine.

@nyanpasu64
Copy link

nyanpasu64 commented Jan 24, 2022

I ran into this issue as well. The failed command seems to match #385 and #590. I'm not sure if the steps or cause is the same.

In my case, I have a vendored repository (3rdparty/STX) which originally contained submodules (in 3rdparty/STX/.gitmodules). I vendored it as a subrepo, but Git still thinks 3rdparty/STX/third_party/abseil is a submodule, but with no corresponding entry in the top-level .gitmodules. Now git submodule foreach --recursive git config --local --name-only --get-regexp 'core\.sshCommand' tries and fails to operate on the subrepo's submodules:

fatal: No url found for submodule path '3rdparty/STX/third_party/abseil' in .gitmodules

@jsoref
Copy link
Contributor

jsoref commented Aug 22, 2022

This is technically a duplicate of #354

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants