This is the mail archive of the
cygwin
mailing list for the Cygwin project.
gitk unusable in cygwin-1.7.6-1 because tcltk-20080420-1 is native win32 app.
- From: neomjp <neomjp at yahoo dot co dot jp>
- To: cygwin at cygwin dot com
- Date: Sat, 28 Aug 2010 03:22:29 +0900 (JST)
- Subject: gitk unusable in cygwin-1.7.6-1 because tcltk-20080420-1 is native win32 app.
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