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

Re: Location of git config on Windows

From
Erik Faye-Lund <kusmabite@gmail.com>
Date
Aug 18, 2014, 18:17 UTC
Message-ID
<CABPQNSbqT1CO3tXn7S3DA88BuEQpz__5D1e4gJLvYeZZy0Ztzg@mail.gmail.com>
In-Reply-To
<ygfsiktu3rl.fsf@corbe.net>
On Mon, Aug 18, 2014 at 7:05 PM, Daniel Corbe <corbe@corbe.net> wrote:
Show 30 quoted lines
> Erik Faye-Lund <kusmabite@gmail.com> writes:
>
>> On Mon, Aug 18, 2014 at 5:47 PM, Erik Faye-Lund <kusmabite@gmail.com> wrote:
>>> On Mon, Aug 18, 2014 at 5:40 PM, Daniel Corbe <corbe@corbe.net> wrote:
>>>>
>>>> Erik Faye-Lund <kusmabite@gmail.com> writes:
>>>>
>>>>> Or you could just restart your shell when you disconnect...
>>>>
>>>> Well I'm not that daft.  I tried that and if it had resolved my problem
>>>> I wouldn't have posted.
>>>
>>> Hm, but isn't that what Karsten explains in his last paragraph? What
>>> shell are you running msys or cmd?
>>
>> Our /etc/profile does this:
>>
>> https://github.com/msysgit/msysgit/blob/master/etc/profile#L38
>>
>> ...however, our git-wrapper only does this:
>>
>> https://github.com/msysgit/msysgit/blob/master/src/git-wrapper/git-wrapper.c#L71
>>
>> So yeah, we don't seem to actually check if %HOMEDRIVE%%HOMEPATH%
>> exists. Perhaps fixing this is the right thing to do then? Since the
>> git-wrapper is run for *every* invokation of git, you wouldn't even
>> have to restart the shell in this case.
>
> But again, restarting the shell doesn't fix the problem.
>
Not for cmd, no. But for Git Bash, it should.
Previous: Daniel Corbe
Message 11 of 11 in “Location of git config on Windows”
  1. Daniel CorbeAug 17, 2014
  2. Jason PyeronAug 17, 2014
  3. Erik Faye-LundAug 17, 2014
  4. Karsten BleesAug 17, 2014
  5. Daniel CorbeAug 18, 2014
  6. Erik Faye-LundAug 18, 2014
  7. Daniel CorbeAug 18, 2014
  8. Erik Faye-LundAug 18, 2014
  9. Erik Faye-LundAug 18, 2014
  10. Daniel CorbeAug 18, 2014
  11. Erik Faye-LundAug 18, 2014

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.