X-Recipient: archive-cygwin AT delorie DOT com X-SWARE-Spam-Status: No, hits=0.2 required=5.0 tests=AWL,BAYES_50,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,TW_MJ,TW_YG,T_RP_MATCHES_RCVD,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: sourceware.org Message-ID: <20100827182230.8007.qmail@web4111.mail.ogk.yahoo.co.jp> Date: Sat, 28 Aug 2010 03:22:29 +0900 (JST) From: neomjp Subject: gitk unusable in cygwin-1.7.6-1 because tcltk-20080420-1 is native win32 app. To: cygwin AT cygwin DOT com MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com When I invoke gitk like this: ##################################################### $ cygcheck -c cygwin git gitk tcltk Cygwin Package Information Package Version Status cygwin 1.7.6-1 OK git 1.7.1-1 OK gitk 1.7.1-1 OK tcltk 20080420-1 OK $ ls -a . .. .git $ git rev-parse --git-dir .git $ gitk ##################################################### I got the following error: ##################################################### "Cannot find a git repository here." ##################################################### This error message is shown when a valid .git directory is not found. ##################################################### $ sed -n "11441,11446p" /usr/bin/gitk # check that we can find a .git directory somewhere... if {[catch {set gitdir [gitdir]}]} { show_error {} . [mc "Cannot find a git repository here."] exit 1 } ##################################################### But as the "ls -a" output above shows, I do have a .git directory. So this means the procedure "gitdir" somehow failed to detect the .git directory. The cause of this error comes down to this: ##################################################### $ echo "puts [pwd]"|wish //?/PIPE ##################################################### /usr/bin/gitk is a tcl (wish) script, but tcltk-20080420-1 is a native Win32 app. So in cygwin-1.7.6-1, the working directory of wish is set to //?/PIPE. That is why the git command invoked from inside gitk failed saying "Cannot find a git repository here." A temporary workaround is to use cygwin-1.7.5-1, but, 1. I see a long discussion about cygwin vs. win32 CWD is taking place in cygwin-developer. What is win32 CWD going to be in cygwin in the future? 2. I understand that the reason to have tcltk-20080420-1 as a win32 app is to have a graphical insight that does not depend on X Window. (Thread "Does anyone use insight on cygwin?" in cygwin 2008-08.) But in the thread "gdb, insight, and tcltk" in cygwin 2009-10, Charles Wilson discussed War and Peace of an X-based package. Is anything moving recently in this vein? -- neomjp -------------------------------------- GyaO! - Anime, Dramas, Movies, and Music videos [FREE] http://pr.mail.yahoo.co.jp/gyao/ -- 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