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

git-auth-helper causes failure to update with stray submodule commit object without matching module in .gitmodules. #582

Open
ScatteredRay opened this issue Sep 13, 2021 · 2 comments

Comments

@ScatteredRay
Copy link

So, we have a submodule that we deleted and somehow will get re-added at times. This causes a build failure, the problem however, is even once it's removed, or with other branches continue to get failures due to a problem with git-auth-helper.

To reproduce, create a repository with a submodule.
Setup a github action with a actions/checkout step with a token property to auth to a private git repository.
Delete the information about the submodule in the .gitmodules file, and submit that commit to build with GHA.
Notice the error:

  "C:\Program Files\Git\cmd\git.exe" config --local --name-only --get-regexp core\.sshCommand
  "C:\Program Files\Git\cmd\git.exe" 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 '<Path>' in .gitmodules
  Error: The process 'C:\Program Files\Git\cmd\git.exe' failed with exit code 128```

Now delete the submodule, and make a new commit, note the repository is now stuck and cannot update.
@mikebrandl
Copy link

I have this same issue.

@jsoref
Copy link
Contributor

jsoref commented Aug 22, 2022

Assuming you aren't using self-hosted, this is probably a duplicate of #354 (there's a second bug for self-hosted issues).

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