From owner-freebsd-tcltk@FreeBSD.ORG Mon Jul 15 08:32:52 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 C0F5A263; Mon, 15 Jul 2013 08:32:52 +0000 (UTC) (envelope-from gahr@FreeBSD.org) Received: from cpanel09.rubas.ch (cpanel09.rubas.ch [195.182.222.79]) by mx1.freebsd.org (Postfix) with ESMTP id 81D4F6B1; Mon, 15 Jul 2013 08:32:52 +0000 (UTC) Received: from 98-41.199-178.cust.bluewin.ch ([178.199.41.98]:64803 helo=gahrfit.gahr.ch) by cpanel09.rubas.ch with esmtpsa (TLSv1:DHE-RSA-AES256-SHA:256) (Exim 4.80.1) (envelope-from ) id 1UyeD6-003Lsz-Bn; Mon, 15 Jul 2013 10:32:45 +0200 Date: Mon, 15 Jul 2013 10:32:41 +0200 From: Pietro Cerutti To: Andriy Gapon Subject: Re: weird problem with git gui Message-ID: <20130715083241.GB21355@gahrfit.gahr.ch> References: <51E3AD58.6030001@FreeBSD.org> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="cNdxnHkX5QqsyA0e" Content-Disposition: inline In-Reply-To: <51E3AD58.6030001@FreeBSD.org> X-PGP-Key: 0x9571F78E X-PGP-Fingerprint: 1203 92B5 3919 AF84 9B97 28D6 C0C2 6A98 9571 F78E User-Agent: Mutt/1.5.21 (2010-09-15) X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - cpanel09.rubas.ch X-AntiAbuse: Original Domain - freebsd.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - FreeBSD.org X-Get-Message-Sender-Via: cpanel09.rubas.ch: authenticated_id: gahr@gahr.ch Cc: tcltk@FreeBSD.org X-BeenThere: freebsd-tcltk@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list Reply-To: gahr@FreeBSD.org 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:32:52 -0000 --cNdxnHkX5QqsyA0e Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On 2013-Jul-15, 11:05, Andriy Gapon wrote: >=20 > 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 in= cluded > updates of tcl and tk. >=20 > Here is a small snippet from modified tcl/tk code in > /usr/local/libexec/git-core/git-gui: >=20 > 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 >=20 > I think the following output speaks for itself: > 1GIT_DIR is .git > 2GIT_DIR as .git.git >=20 > I am very puzzled as to why the 'menu' command would cause such a detrime= ntal > 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. >=20 > Any hints and suggestions are very appreciated! > I'll get back with any additional details I discover. I fear I can't reproduce it locally,=20 puts [info patchlevel] puts "1 - $env(GIT_DIR)" menu .mbar -tearoff 0 puts "2 - $env(GIT_DIR)" gives 8.6.0 1 - .git 2 - .git I get to it by opening an existing repository. Could you please elaborate on the steps you take to get to that point? --=20 Pietro Cerutti The FreeBSD Project gahr@FreeBSD.org PGP Public Key: http://gahr.ch/pgp --cNdxnHkX5QqsyA0e Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.20 (FreeBSD) iEYEARECAAYFAlHjs6gACgkQwMJqmJVx946PSACgwGGFt7zbC4yyax0X+c1q1dLl Q5EAoJgJ5WLjERSIgKFNoEmGVOMF1ZG6 =opTk -----END PGP SIGNATURE----- --cNdxnHkX5QqsyA0e--