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

Re: [PATCH] emacs: make 'git-status' work with separate git dirs

From
Junio C Hamano <gitster@pobox.com>
Date
Nov 26, 2012, 23:30 UTC
Message-ID
<7vboekosb7.fsf@alter.siamese.dyndns.org>
In-Reply-To
<87ehjit5ke.fsf@wine.dyndns.org>
Alexandre Julliard <julliard@winehq.org> writes:
Show 26 quoted lines
> Junio C Hamano <gitster@pobox.com> writes:
>
>> Enrico Scholz <enrico.scholz@sigma-chemnitz.de> writes:
>>
>>> when trying 'M-x git-status' in a submodule created with recent (1.7.5+)
>>> git, the command fails with
>>>
>>> | ... is not a git working tree
>>>
>>> This is caused by creating submodules with '--separate-git-dir' but
>>> still checking for a working tree by testing for a '.git' directory.
>>>
>>> The patch fixes this by relaxing the existing detection a little bit.
>>>
>>> Signed-off-by: Enrico Scholz <enrico.scholz@sigma-chemnitz.de>
>>> ---
>>
>> This script already relies on the assumption that nobody sane would
>> create a directory named ".git" that is not a git repository, and
>> this loosens the assumption that nobody would create a file named
>> ".git", either.  So I would think it is a sane thing to do, but just
>> in case if the area expert has better ideas, I am forwarding it.
>>
>> Ack?
>
> Sure, that's fine.
Thanks, both.  Applied.
Previous: Alexandre Julliard
Message 4 of 4 in “emacs: make 'git-status' work with separate git dirs”
  1. emacs: make 'git-status' work with separate git dirsEnrico Scholz, Nov 22, 2012
  2. Junio C HamanoNov 25, 2012
  3. Alexandre JulliardNov 25, 2012
  4. Junio C HamanoNov 26, 2012

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.