From owner-freebsd-tcltk@FreeBSD.ORG Mon Jul 15 08:06:51 2013 Return-Path: Delivered-To: tcltk@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id 150EE784 for ; Mon, 15 Jul 2013 08:06:51 +0000 (UTC) (envelope-from avg@FreeBSD.org) Received: from citadel.icyb.net.ua (citadel.icyb.net.ua [212.40.38.140]) by mx1.freebsd.org (Postfix) with ESMTP id 60B54A2 for ; Mon, 15 Jul 2013 08:06:49 +0000 (UTC) Received: from porto.starpoint.kiev.ua (porto-e.starpoint.kiev.ua [212.40.38.100]) by citadel.icyb.net.ua (8.8.8p3/ICyb-2.3exp) with ESMTP id LAA06039 for ; Mon, 15 Jul 2013 11:06:41 +0300 (EEST) (envelope-from avg@FreeBSD.org) Received: from localhost ([127.0.0.1]) by porto.starpoint.kiev.ua with esmtp (Exim 4.34 (FreeBSD)) id 1Uydns-000GCX-UJ for tcltk@FreeBSD.org; Mon, 15 Jul 2013 11:06:40 +0300 Message-ID: <51E3AD58.6030001@FreeBSD.org> Date: Mon, 15 Jul 2013 11:05:44 +0300 From: Andriy Gapon User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:17.0) Gecko/20130708 Thunderbird/17.0.7 MIME-Version: 1.0 To: tcltk@FreeBSD.org Subject: weird problem with git gui X-Enigmail-Version: 1.5.1 Content-Type: text/plain; charset=X-VIET-VPS Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-tcltk@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: FreeBSD-specific Tcl/Tk discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 15 Jul 2013 08:06:51 -0000 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