delorie.com/archives/browse.cgi | search |
X-Recipient: | archive-cygwin AT delorie DOT com |
X-SWARE-Spam-Status: | No, hits=-2.7 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW |
X-Spam-Check-By: | sourceware.org |
MIME-Version: | 1.0 |
Reply-To: | arnon AT moscona DOT com |
Date: | Fri, 3 Feb 2012 10:53:00 -0800 |
Message-ID: | <CAN0dh0hfBOuvzW=g0wV+Mgvyk6omSH3N_YH18LeX_xTYvfm00w@mail.gmail.com> |
Subject: | Apparent TCL bug in 1.7.9-1 on directory mounted volumes |
From: | Arnon Moscona <forwardmoscona AT gmail DOT com> |
To: | cygwin AT cygwin DOT com |
Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
List-Id: | <cygwin.cygwin.com> |
List-Subscribe: | <mailto:cygwin-subscribe AT cygwin DOT com> |
List-Archive: | <http://sourceware.org/ml/cygwin/> |
List-Post: | <mailto:cygwin AT cygwin DOT com> |
List-Help: | <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs> |
Sender: | cygwin-owner AT cygwin DOT com |
Mail-Followup-To: | cygwin AT cygwin DOT com |
Delivered-To: | mailing list cygwin AT cygwin DOT com |
X-MIME-Autoconverted: | from quoted-printable to 8bit by delorie.com id q13IrS8I000604 |
I have a windows volume (NTFS) mounted on a directory, so it shows up in windows explorer as if it was in the C: drive, and I can work with it in cygwin normally as if i am in the tree under /cygdrive/c/... Inside this directory (in a subdir) I have a git repository. The git commad line works normally in this repo. However gitk is broken, popping up a message "Cannot find the git directory ".git"" I traced this problem in the gitk script (a TCL wish script under /usr/bin/gitk) to the lines: if {![file isdirectory $gitdir]} { puts $gitdir show_error {} . [mc "Cannot find the git directory \"%s\"." $gitdir] exit 1 } Basically isdirectory is returning false where it should be returning true. If I comment out these lines, then gitk works normally (I guess it would be fooled by any file named .git, which is not really a git repo - oh well) $cygcheck -c cygwin git gitk tcltk Cygwin Package Information Package Version Status cygwin 1.7.9-1 OK git 1.7.5.1-1 OK gitk 1.7.5.1-1 OK tcltk 20080420-1 OK Anywhere else in the file system, on all drives gitk works just fine. The only case where it fails is in any git repository in this specific volume (which is mounted on a directory in the C: subtree) My OS is Windows 7 Pro, 64 bit It appears to be a bug in TCL... -- Arnon Moscona arnon AT moscona DOT com Sed fugit interea fugit irreparabile tempus, singula dum capti circumvectamur amore -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |