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

Re: Re: [BUG] git gui blame: Show History Context broken since 29e5573d

From
Giuseppe Bilotta <giuseppe.bilotta@gmail.com>
Date
Feb 22, 2010, 23:29 UTC
Message-ID
<cb7bb73a1002221529r6aee3202l5b6609b59aea01fd@mail.gmail.com>
In-Reply-To
<20100222223802.GA9898@book.hvoigt.net>
On Mon, Feb 22, 2010 at 11:38 PM, Heiko Voigt <hvoigt@hvoigt.net> wrote:
Show 21 quoted lines
> On Mon, Feb 22, 2010 at 04:18:11PM +0100, Giuseppe Bilotta wrote:
>> On Mon, Feb 22, 2010 at 9:27 AM, Matthieu Moy
>> <Matthieu.Moy@grenoble-inp.fr> wrote:
>> > Hi,
>> >
>> > In "git gui blame", right-clicking on the left fringe and chosing
>> > "Show History Context" in the context-menu doesn't work for me in the
>> > latest git. It says:
>> >
>> > couldn't change working directory to "": no such file or directory
>>
>> Definitely my fault. _gitworktree was not being set up correctly when
>> support for bare repositories was enabled and the repo was not bare
>> (like in the blame case). Patch incoming, can you see if it does the
>> job for you? It seems to fix it here.
>
> Isn't this the same bug as this one fixes:
>
> http://article.gmane.org/gmane.comp.version-control.git/140288
>
> cheers Heiko

Interesting, I missed that patch. However, I strongly suspect that patch is not correct, since in that case the setup of gitworktree is done before checking for bareness, meaning that when working in somerepo.git (bare repo) for which the config flag is not set, it might misdetect the situation as being in the non-bare case. I believe my fix to be more correct in this regard.

-- 
Giuseppe "Oblomov" Bilotta
Previous: Heiko VoigtNext: Matthieu Moy
Message 4 of 9 in “[BUG] git gui blame: Show History Context broken since 29e5573d”
  1. Matthieu MoyFeb 22, 2010
  2. Giuseppe BilottaFeb 22, 2010
  3. Heiko VoigtFeb 22, 2010
  4. Giuseppe BilottaFeb 22, 2010
  5. Matthieu MoyFeb 23, 2010
  6. Heiko VoigtFeb 23, 2010
  7. git-gui: fix worktree initialization with empty prefixGiuseppe Bilotta, Feb 22, 2010
  8. Matthieu MoyFeb 22, 2010
  9. Giuseppe BilottaFeb 22, 2010

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.