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

[bug] Submodule with missing link in .gitmodules fails #788

Open
dsayling opened this issue May 2, 2022 · 3 comments
Open

[bug] Submodule with missing link in .gitmodules fails #788

dsayling opened this issue May 2, 2022 · 3 comments

Comments

@dsayling
Copy link

dsayling commented May 2, 2022

So, a colleague has a repository with a submodule that's been removed incorrectly. The link still persists in the tree somehow, but the .gitmodules file has been removed.
The checkout step is defined to not checkout the submodules, but it still fails in setting up the auth:

Run actions/checkout@v2
  with:
    ref: <ref>
    fetch-depth: 0
    repository: <repo>
    token: ***
    ssh-strict: true
    persist-credentials: true
    clean: true
    lfs: false
    submodules: false
    set-safe-directory: true
    
  /usr/bin/git config --local --name-only --get-regexp core\.sshCommand
  /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 'src/submodule' in .gitmodules
  Error: The process '/usr/bin/git' failed with exit code 128

Why is the submodule command even being run? Does it have to?

@sangshuduo
Copy link

same issue happened to me too

@dsayling dsayling changed the title Submodule with missing link in .gitmodules fails [bug] Submodule with missing link in .gitmodules fails Aug 9, 2022
@jsoref
Copy link
Contributor

jsoref commented Aug 22, 2022

This is technically a duplicate of #354

@dsayling
Copy link
Author

This is technically a duplicate of #354

It does appear to be related, but I don't know if they're trying to explicitly disable submodules or not. It seems to me that if 'false', it shouldn't try setting up the submodules on first clone. 🤷

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

No branches or pull requests

3 participants