git version 2.16.0.windows.2
cpu: x86_64
built from commit: a56c4f9e2a9513d2be57dc4346e0e84887399cd9
sizeof-long: 4
Microsoft Windows [Version 6.3.9600]
Editor Option: Notepad++
Path Option: Cmd
SSH Option: OpenSSH
CURL Option: OpenSSL
CRLF Option: CRLFCommitAsIs
Bash Terminal Option: MinTTY
Performance Tweaks FSCache: Enabled
Use Credential Manager: Enabled
Enable Symlinks: Enabled
Nothing I can think of.
PowerShell
git add .
git stash
Expected a stash save and a reset to a clean repo.
I got a few "error: unable to stat just-written file: No such file or directory" errors and the repo was not reset. The files mentioned are files I had removed locally.
It's a private repository.
That does not reproduce here. You may want to try with a fresh repository that you can make public, so as to verify that it is not a problem with your private repository -- in which case nobody could help you, anyway, because you did not provide a Minimal, Complete & Verifiable Example (as suggested by our issue reporting template).
I haven't got a minimal repro either, but just to add that I have seen this & similar issues since updating to 2.16.0 today. If I get a chance in the next few days I'll see if I can re-create.
@csmager greatly appreciated!
There is a segfault issue / pathch going around the main Git list that has been traced to having files differeing in case, which is more likely on large repos.
Have a review of the thread https://public-inbox.org/git/CALwADsGfB10f5+nOFN-pHCt4z1SkWMcvSHn8KokcyCM0V6K-BA@mail.gmail.com/ with patch starting at https://public-inbox.org/git/[email protected]/
If @ChaseGrant or @csmager could try out the repoduction steps in the thread, or check if they have the same underlying issue, then that would be a start, especally as a patch is available for testing.
Not to mention that coming back with information will help your issue getting resolved quickly.
For example, if the patch in question turns out to address the reported bug, we could have a new Git for Windows release as soon as coming week, and a (fully working) snapshot installer as soon as in a couple of hours. The quicker you react, the quicker you will have a fix.
@PhilipOakley Following the steps in that link definitely crash GIT for me. Unsure if it's related to my stash issues or not.
@dscho Sorry for not satisfying the ticket logging requirements. I will attempt to create a public repo to recreate.
I can reproduce with this test repo: https://github.com/ChaseGrant/GITTest
Steps to reproduce:
I then get the following error:
Saved working directory and index state WIP on master: 5c8921c Test file added
error: unable to stat just-written file Test.txt: No such file or directory
fatal: Could not reset index file to revision 'HEAD'.
I am running Windows 8.1 Enterprise x64 in case the Windows version in the first ticket was not enough information.
I can also confirm that cloning the vim-colorschemes repo per the mailing list causes git to crash. In event viewer, I see
Faulting application name: git.exe, version: 2.16.0.2, time stamp: 0x5a610d37
Faulting module name: git.exe, version: 2.16.0.2, time stamp: 0x5a610d37
Exception code: 0xc0000005
Fault offset: 0x0000000000117133
Faulting process ID: 0x1e20
Faulting application start time: 0x01d3935ffa255e7b
Faulting application path: C:\Program Files\Git\mingw64bingit.exe
Faulting module path: C:\Program Files\Git\mingw64bingit.exe
Report ID: 73cae1a2-ebe3-4209-9b55-e6b94d662ce6
Faulting package full name:
Faulting package-relative application ID:
And following @ChaseGrant's steps above with the test repo, I also get:
Saved working directory and index state WIP on master: 5c8921c Test file added
error: unable to stat just-written file Test.txt: No such file or directory
fatal: Could not reset index file to revision 'HEAD'.
It does seem to me that this issue is related to (if not the same as) the ones raised subsequently as #1437, #1438, #1440 and #1442.
For me, I think, this is https://github.com/git-for-windows/git/issues/1440.
I updated to git version 2.16.0.windows.2. It worked with git version 2.15.1.windows.2.
I found this issue here while searching for
error: unable to stat just-written file
koppor@aslap3 MINGW64 /c/git-repositories/jabref/cloudref (master)
$ git worktree add ../cloudref-docker docker
Preparing ../cloudref-docker (identifier cloudref-docker)
error: unable to stat just-written file .gitattributes: No such file or directory
Indeed. I think this will be fixed in Git for Windows v2.16.1 (which I am busy releasing as we speak).
Confirmed as fixed.
Most helpful comment
Confirmed as fixed.