Skip to content

Mac handling of submodules is too aggressive #2553

@adamcbraun

Description

@adamcbraun

I have a repository that I'm working with that has a few submodules. I don't use all these submodules and in fact don't have permission to all of them. When I try to pull from the remote or even checkout main, I get asked for my credentials multiple times (my main access to the repository is through ssh keys) and then I get an error notification (paths changed to <>

Cloning into '<local/path/to/submodule>'...
warning: templates not found in /usr/local/git/share/git-core/templates
fatal: Authentication failed for 'https://dev.azure.com/<remote/path/of/submodule/reference/>'
fatal: clone of 'https://dev.azure.com/<remote/path/of/submodule/reference/>' into submodule path '<local/path/to/submodule>'. failed
Failed to clone '<relative/path/to/submodule>'. Retry scheduled
Cloning into '<local/path/to/submodule>'....
warning: templates not found in /usr/local/git/share/git-core/templates
fatal: Authentication failed for 'https://dev.azure.com/<remote/path/of/submodule/reference/>'
fatal: clone of 'https://dev.azure.com/<remote/path/of/submodule/reference/>' into submodule path '<local/path/to/submodule>'. failed
Failed to clone '<relative/path/to/submodule>' a second time, aborting

This issue only happens when I access through a mac. The interface works fine when accessing through windows. Note: There are some other submodules in the project that I do access, but not the submodule in question.

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