problem with git gui on cygwin.
I have been trying to use git for a small project using cygwin. I copied my repository from one windows XP system to a Vista system using a usb drive. On the new system when I use "git gui" I get a pop up that says "Git directory not
found: .git"
This happens with git gui and gitk. The command line programs I tried, git show and git status appear to work.
I updated cygwin and have git version 1.6.0.2.
Does anyone know what the problem is?
Quoted 7 lines · Jim Jensen
I have been trying to use git for a small project using cygwin. I copied my repository from one windows XP system to a Vista system using a usb drive. On the new system when I use "git gui" I get a pop up that says "Git directory not
found: .git"This happens with git gui and gitk. The command line programs I tried, git show and git status appear to work.
Huh. Sounds like the Tcl/Tk process isn't spawning the Cygwin git process in the right directory or something. Weird that both git-gui and gitk are giving you errors; usually its git-gui that is being paranoid about the repository structure and gitk works just fine.
You can try starting git gui --trace and see if that tells you any more detail, but it doesn't show cwd so it may not be all that useful to help you debug it.
Signature · 1 line
Shawn.
Shawn O. Pearce, Tue, Nov 11, 2008 18:05:57 +0100:
Quoted 9 lines
Quoted 7 lines · Jim Jensen
I have been trying to use git for a small project using cygwin. I copied my repository from one windows XP system to a Vista system using a usb drive. On the new system when I use "git gui" I get a pop up that says "Git directory not
found: .git"This happens with git gui and gitk. The command line programs I tried, git show and git status appear to work.
Quoted 9 lines
Huh. Sounds like the Tcl/Tk process isn't spawning the Cygwin git process in the right directory or something. Weird that both git-gui and gitk are giving you errors; usually its git-gui that is being paranoid about the repository structure and gitk works just fine.
You can try starting
git gui --traceand see if that tells you any more detail, but it doesn't show cwd so it may not be all that useful to help you debug it.
Maybe the fact that wish is not a cygwin application (doesn't use use cygwin1.dll) is a hint?
Jim Jensen <jhjjhjjhj <at> gmail.com> writes:
Some further information:
git gui --trace doesn't seem to do anything.
I copied the tree from the directory it was in :
/cygdrive/c/Docume~1/dad/Desktop/cyghome/javt
to: /javt
and gitk started working.
In this directory git-gui give the following error:
couldn't execute "C:\cygwin\usr\sbin\git-core\git-update-index.exe":
invalid argument
couldn't execute "C:\cygwin\usr\sbin\git-core\git-update-index.exe":
invalid
argument
while executing
"error $err"
(procedure "_open_stdout_stderr" line 16)
invoked from within
"_open_stdout_stderr [concat $opt $cmdp $args"
(procedure "git_read" line 26)
invoked from within
"git_read update-index -q --unmerged --ignore-missing --refresh "
(procedure "rescan" line 39)
invoked from within
"rescan ui_ready"
(procedure "do_rescan" line 2)
invoked from within
"do_rescan"
("after" script)
Any more ideas on things to try?
Quoted 5 lines · Jim Jensen <jhjjhjjhj <at> gmail.com> writes:
Jim Jensen <jhjjhjjhj <at> gmail.com> writes:>
Any more ideas on things to try?
try running cygwin as windows administrator.. i see the same problem on vista... works when i run as admin
Quoted 4 lines · Jim Jensen
I have been trying to use git for a small project using cygwin. I copied my repository from one windows XP system to a Vista system using a usb drive. On the new system when I use "git gui" I get a pop up that says "Git directory not
found: .git"
I had some problems with Git UI and Tk. It does not look like the problem you have but we never know. Can you try:
$ CYGWIN="" gitk
Signature · 8 lines
--|------------------------------------------------------ --| Pascal Obry Team-Ada Member --| 45, rue Gabriel Peri - 78114 Magny Les Hameaux FRANCE --|------------------------------------------------------ --| http://www.obry.net --| "The best way to travel is by means of imagination" --| --| gpg --keyserver wwwkeys.pgp.net --recv-key C1082595