From: Matthieu Moy <Matthieu.Moy@grenoble-inp.fr>
To: git <git@vger.kernel.org>,
Giuseppe Bilotta <giuseppe.bilotta@gmail.com>,
"Shawn O. Pearce" <spearce@spearce.org>
Subject: [BUG] git gui blame: Show History Context broken since 29e5573d
Date: Mon, 22 Feb 2010 09:27:00 +0100 [thread overview]
Message-ID: <vpqaav1llpn.fsf@bauges.imag.fr> (raw)
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 reply other threads:[~2010-02-22 8:30 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-02-22 8:27 Matthieu Moy [this message]
2010-02-22 15:18 ` [BUG] git gui blame: Show History Context broken since 29e5573d Giuseppe Bilotta
2010-02-22 22:38 ` Heiko Voigt
2010-02-22 23:29 ` Giuseppe Bilotta
2010-02-23 6:40 ` Matthieu Moy
2010-02-23 21:30 ` Re: " Heiko Voigt
2010-02-22 15:19 ` [PATCH] git-gui: fix worktree initialization with empty prefix Giuseppe Bilotta
2010-02-22 15:32 ` Matthieu Moy
2010-02-22 15:39 ` Giuseppe Bilotta
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=vpqaav1llpn.fsf@bauges.imag.fr \
--to=matthieu.moy@grenoble-inp.fr \
--cc=git@vger.kernel.org \
--cc=giuseppe.bilotta@gmail.com \
--cc=spearce@spearce.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).