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).