Skip to content

Empty .gitmodules causes error #1867

Open
@daveisfera

Description

@daveisfera

When the .gitmodules file exists but is empty, it appears to cause an error during clean up of the checkout

Post job cleanup.
/usr/bin/git version
git version [2](https://github.com/daveisfera/myrepo/actions/runs/10598127531/job/29369946629#step:10:2).46.0
Temporarily overriding HOME='/home/runner/work/_temp/01c[4](https://github.com/daveisfera/myrepo/actions/runs/10598127531/job/29369946629#step:10:4)9b40-ceaa-46e5-b2ab-fb6e64ce9861' before making global git config changes
Adding repository directory to the temporary git global config as a safe directory
/usr/bin/git config --global --add safe.directory /home/runner/work/myrepo/myrepo
/usr/bin/git config --local --name-only --get-regexp core\.sshCommand
/usr/bin/git submodule foreach --recursive sh -c "git config --local --name-only --get-regexp 'core\.sshCommand' && git config --local --unset-all 'core.sshCommand' || :"
fatal: No url found for submodule path 'aws_deploy/config' in .gitmodules
Warning: The process '/usr/bin/git' failed with exit code 12[8](https://github.com/daveisfera/myrepo/actions/runs/10598127531/job/29369946629#step:10:8)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions