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
Duy Nguyen <pclouds@gmail.com>
Date
Sep 8, 2018, 13:43 UTC
Message-ID
<CACsJy8DdxmVd_jBG7Tp1e7k-BUc6R1=oWzPZ3z6xUZs2XU9rMA@mail.gmail.com>
In-Reply-To
<CACsJy8AMaUmWO2zi9+Dpr9_ZHE7A0rSs63h646w4uokyKRAdUg@mail.gmail.com>
On Sat, Sep 8, 2018 at 3:09 PM Duy Nguyen <pclouds@gmail.com> wrote:
Show 23 quoted lines
>
> On Sat, Sep 8, 2018 at 11:28 AM Hultqvist <hultqvist@silentorbit.com> wrote:
> >
> > The bash commands are using a git and bash bundle that was installed
> > in parallel with gitextensions(a gui for git)
> >
> > G:\Min enhet> set GIT_TRACE_SETUP=1
> > G:\Min enhet> git st
> > 10:40:28.881927 trace.c:318             setup: git_dir:
> > C:/Users/hultqvist/Drive.git
> > 10:40:28.881927 trace.c:319             setup: git_common_dir:
> > C:/Users/hultqvist/Drive.git
> > 10:40:28.881927 trace.c:320             setup: worktree: G:/Min enhet
> > 10:40:28.881927 trace.c:321             setup: cwd: G:/Min enhet
> > 10:40:28.881927 trace.c:322             setup: prefix: (null)
> > 10:40:28.882930 chdir-notify.c:67       setup: chdir from 'G:/Min
> > enhet' to 'G:/Min enhet'
>
> Unfortunately this looks good. Whenever those files 'index',
> 'config'... are created, they should always be created in
> C:\Users\hultqvist\Drive.git, not G:\Min enhet, including their
> temporary versions. I don't know if there are any more changes on the
> windows fork that could affect this though, I only checked git.git.

BTW do you notice these files showing up after any particular command or they're always there after cloning? Perhaps some command got the ".git" directory discovery wrong and assumed $GIT_DIR=$GIT_WORK_TREE. We have a much bigger problem then.

-- 
Duy
Previous: Duy NguyenNext: Hultqvist
Message 6 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.