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

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

From
Matthieu Moy <matthieu.moy@grenoble-inp.fr>
Date
Feb 22, 2010, 08:27 UTC
Message-ID
<vpqaav1llpn.fsf@bauges.imag.fr>
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
couldn't change working directory to "": no such file or directory
    while executing
"cd $_gitworktree"
    (procedure "do_gitk" line 25)
    invoked from within
"do_gitk $cmdline"
    (procedure "blame::_gitkcommit" line 47)
    invoked from within
"blame::_gitkcommit ::blame::__o1::__d"
    invoked from within
".ctxm invoke active"
    ("uplevel" body line 1)
    invoked from within
"uplevel #0 [list $w invoke active]"
    (procedure "tk::MenuInvoke" line 50)
    invoked from within
"tk::MenuInvoke .ctxm 1"
    (command bound to event)
Git bisect shows me the guilty commit:
commit 29e5573d1ef67c92314c39e55d26504fee119c04
Author: Giuseppe Bilotta <giuseppe.bilotta@gmail.com>
Date:   Sat Jan 23 11:03:35 2010 +0100
    git-gui: handle bare repos correctly
    
    Refactor checking for a bare repository into its own proc, that relies
    on git rev-parse --is-bare-repository if possible. For older versions of
    git we fall back to a logic such that the repository is considered bare
    if:
     * either the core.bare setting is true
     * or the worktree is not set and the directory name ends with .git
    The error message for the case of an unhandled bare repository is also
    updated to reflect the fact that the problem is not the funny name but
    the bareness.
    
    The new refactored proc is also used to disable the menu entry to
    explore the working copy, and to skip changing to the worktree before
    the gitk invocation.
    
    Signed-off-by: Giuseppe Bilotta <giuseppe.bilotta@gmail.com>
    Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
This is in a non-bare repo.
Anyone to fix this?
Thanks,
-- 
Matthieu Moy
http://www-verimag.imag.fr/~moy/
Next: Giuseppe Bilotta
Message 1 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.