Skip to content

Checkout@v2 fails without git submodules #610

Open
@mkuligow

Description

@mkuligow

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

Activity

GSvensk

GSvensk commented on Oct 19, 2021

@GSvensk

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

nyanpasu64

nyanpasu64 commented on Jan 24, 2022

@nyanpasu64

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

jsoref commented on Aug 22, 2022

@jsoref
Contributor

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      Participants

      @nyanpasu64@jsoref@GSvensk@mkuligow

      Issue actions

        Checkout@v2 fails without git submodules · Issue #610 · actions/checkout