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
Error adding 2+ files after init --shared with fscache #3110
Comments
Does it even make sense to use |
The same repository is cloned to multiple platforms. The command lines for repository creation and use are automated as part of integrating Git in a tool that works on multiple platforms. I'm not so worried about whether --shared can perfectly emulate the permissions familiar from Unix, more that simple core operations are broken in this case. This issue is about that bug; if anyone wants to suggest better permissions emulation, that could be raised as a separate issue. |
Have you given it a shot to debug this via A good idea would be to set a breakpoint on
|
Sorry, I have no familiarity with the Git code, and precious little with |
I'll leave this open, then, but have to caution you not to expect much. I, for one, am too short on time to play with this right now. |
Closing as stale. |
Setup
defaults?
to the issue you're seeing?
Seems independent of machine or disk type (SSD, HDD, external USB HDD)
Details
CMD
Minimal, Complete, and Verifiable example
this will help us understand the issue.
The two files are added with no errors
error: unable to create temporary file: No such file or directory
error: y: failed to insert into database
error: unable to index file 'y'
fatal: adding files failed
URL to that repository to help us with testing?
(New local repository being created in an empty directory)
If I omit --shared, there is no error
If there is only one file, there is no error
If the echo commands do not have characters, just adding a blank line, there is no error
If I turn off fscache, there is no error (git config --global core.fscache false)
All other filenames and contents also show the problem, for 2+ files
E.g. with files x,y,z,a,b, error happens on b - seems to be 2nd file in alphabetical order
The various GIT_TRACE_* options do not reveal anything useful, just normal setup up to trace: built-in: git add -A
Problem seems to have existed since at least 2017 (Google the 'unable to create temp...' error and git, e.g. https://stackoverflow.com/a/44040893 )
Confirmed in git version 2.26.2.windows.1
Problem does not occur in git version 2.9.3.windows.2 (2016) on Windows 10.0.18363.1316 with fscache
Bug originally reported to git@vger.kernel.org, was asked to post here as seems Windows specific.
The text was updated successfully, but these errors were encountered: