-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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: refs/files-backend.c:465: returning non-zero -1, should have set myerr! #3674
Comments
I can reproduce the problem and am investigating. |
Hrm. It does not reproduce with a freshly-built |
I have added quite some details tohttps://github.com//issues/3655, containing more information, as it was talking about the same error. If I have a detached HEAD and a remotes ref pointing to the same commit, then I see the problem. |
@siprbaum thank you for providing info, but I think the problem lies with FSCache (i.e. completely elsewhere). At least I can reproduce the problem when running with a freshly-built |
This fixes it for me locally. I started the workflow to build the installer and the portable Git. Once it finishes, these two artifacts will be available for downloading, and at that stage I will ask you gentle people to verify that this fixes your problem, so that we can get the release process for Git for Windows v2.35.1(2) going. |
Here they are: the installer and Portable Git. @hoffmale @siprbaum @luminans @benwitman could you please all verify that this fixes the bug for you? |
A [bug](git-for-windows/git#3674) in FSCache that triggered by a patch that made it into Git for Windows v2.35.0 [was fixed](git-for-windows/git#3678). Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
@dscho Just to confirm, I also tested the portable variant and can confirm that the problem is fixed! |
Thank you @siprbaum! And here are the artifacts for the release I am going to start now: https://dev.azure.com/git-for-windows/git/_build/results?buildId=93847&view=artifacts&pathAsName=false&type=publishedArtifacts |
I was also having this issue and |
Great, thanks! You can also upgrade to the latest release, which has the fix: https://github.com/git-for-windows/git/releases/tag/v2.35.1.windows.2 |
I downloaded version linked and my git status is working now, albeit it also logs the following:
|
@dscho where can I get the vfs version of git with this fix? |
nevermind, found it: https://github.com/microsoft/git/releases/tag/v2.35.1.vfs.0.0 |
Setup
defaults?
to the issue you're seeing?
This initially occured during pull request builds on our CI.
Details
CMD
I have not been able to reproduce this bug in git-bash.
Minimal, Complete, and Verifiable example
this will help us understand the issue.
I expect
git status
to report no changes and exit successfully.git status
prints the following messageBUG: refs/files-backend.c:465: returning non-zero -1, should have set myerr!
and aborts (albeit with exit code0
).URL to that repository to help us with testing?
I just tested it with this repository: https://github.com/hoffmale/containers.git
It doesn't seem to work with a freshly created one: https://github.com/hoffmale/example.git
This problem is not present in version 2.34.1
The text was updated successfully, but these errors were encountered: