git/list[1] front-page[2] threads[3] people[4] search[5] about
 

RE: [BUG] Error adding 2+ files after init --shared on Windows with fscache

From
SKSteven Kelly <stevek@metacase.com>
Date
Mar 12, 2021, 22:13 UTC
Message-ID
<AM7P194MB0900EF9C0B19A1382652A669A66F9@AM7P194MB0900.EURP194.PROD.OUTLOOK.COM>
In-Reply-To
<YEvZnm1z7nm6ctHA@camp.crustytoothpaste.net>
On 2021-03-12 at 21:14:00, brian m.carlson wrote:
Show 35 quoted lines
> On 2021-03-12 at 15:52:43, Steven Kelly wrote:
> > What did you do before the bug happened? (Steps to reproduce your
> issue)
> > Clean install of Git on Windows 10 using default options
> > git init --shared
> > echo x>x
> > echo y>y
> > git add -A
> >
> > What did you expect to happen? (Expected behavior)
> > The two files are added with no errors
> >
> > What happened instead? (Actual behavior)
> > 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
> >
> > What's different between what you expected and what actually
> happened?
> > The add command fails with an error 'unable to create temporary file'
> >
> > Anything else you want to add:
> > 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)
> 
> Seeing this definitely makes me think this should be reported to the Git
> for Windows project (https://github.com/git-for-windows/git) because
> that's a nonstandard option that's specific to Windows.  I don't think
> anyone here (other, of course, than the Git for Windows folks) is
> familiar with how that option works and since it isn't part of core Git
> we wouldn't be able to fix it.

Thanks, duly reported: https://github.com/git-for-windows/git/issues/3110#issue-830551915 I note this bug does not occur in git version 2.9.3.windows.2 (2016) on Windows 10.0.18363.1316 with fscache It seems to have existed since at least 2017: https://stackoverflow.com/a/44040893

Previous: brian m. carlson
Message 3 of 3 in “[BUG] Error adding 2+ files after init --shared on Windows with fscache”
  1. Steven KellyMar 12, 2021
  2. brian m. carlsonMar 12, 2021
  3. Steven KellyMar 12, 2021

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.