Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 15 Jul 2013 11:05:44 +0300
From:      Andriy Gapon <avg@FreeBSD.org>
To:        tcltk@FreeBSD.org
Subject:   weird problem with git gui
Message-ID:  <51E3AD58.6030001@FreeBSD.org>

next in thread | raw e-mail | index | archive | help

I started having some weird problems with "git gui" command after a recent
massive upgrade of ports (the last one was > 3 months ago), which also included
updates of tcl and tk.

Here is a small snippet from modified tcl/tk code in
/usr/local/libexec/git-core/git-gui:

catch {puts "1GIT_DIR is $env(GIT_DIR)"} # added by me
menu .mbar -tearoff 0
catch {puts "2GIT_DIR is $env(GIT_DIR)"} # added by me

I think the following output speaks for itself:
1GIT_DIR is .git
2GIT_DIR as .git.git

I am very puzzled as to why the 'menu' command would cause such a detrimental
change to the environment.
I am trying to debug this issue right now.  I see that there is a call to
TclSetupEnv() (from generic/tclEnv.c) when 'menu' is executed.

Any hints and suggestions are very appreciated!
I'll get back with any additional details I discover.

-- 
Andriy Gapon



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?51E3AD58.6030001>