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
brian m. carlson <sandals@crustytoothpaste.net>
Date
Mar 12, 2021, 21:14 UTC
Message-ID
<YEvZnm1z7nm6ctHA@camp.crustytoothpaste.net>
In-Reply-To
<AM7P194MB0900C227791B8B7AA1D34DBEA66F9@AM7P194MB0900.EURP194.PROD.OUTLOOK.COM>
On 2021-03-12 at 15:52:43, Steven Kelly wrote:
Show 24 quoted lines
> 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.

-- 
brian m. carlson (he/him or they/them)
Houston, Texas, US
Previous: Steven KellyNext: Steven Kelly
Message 2 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.