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

Re: Temporary git files for the gitdir created on a separate drive in workdir

From
Junio C Hamano <gitster@pobox.com>
Date
Sep 7, 2018, 16:48 UTC
Message-ID
<xmqqbm99xngs.fsf@gitster-ct.c.googlers.com>
In-Reply-To
<CAJmnt9Yfed1W7F=C+dzac3AEe7nRq2cNP335MepTczboKJNoEg@mail.gmail.com>
Hultqvist <hultqvist@silentorbit.com> writes:
> Considering that the gitdir could be located on a different drive than
> the workdir wouldn't it make more sense to create the temporary files
> in a subdirectory inside the gitdir rather tan in the workdir?

I do not think we intend to create temporary files, whose final destination is somewhere under $GIT_DIR/, in any working tree; rather, I think we try to create them inside $GIT_DIR (or possibly if the destination is a file in a subdirectory of $GIT_DIR, then in the same subdirectory). What you are seeing definitely smells like a bug in the worktree code, perhaps getting confused by the fact that the full path to these places look "unusual" by starting with a single alphabet followed by a colon (IOW, this may manifest only in Windows port).

Previous: HultqvistNext: Duy Nguyen
Message 2 of 9 in “Temporary git files for the gitdir created on a separate drive in workdir”
  1. HultqvistSep 7, 2018
  2. Junio C HamanoSep 7, 2018
  3. Duy NguyenSep 8, 2018
  4. HultqvistSep 8, 2018
  5. Duy NguyenSep 8, 2018
  6. Duy NguyenSep 8, 2018
  7. HultqvistSep 9, 2018
  8. HultqvistSep 10, 2018
  9. Duy NguyenSep 11, 2018

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.