threads / discuss / 16272

problem with git gui on cygwin.

Subject: problem with git gui on cygwin.

## tl;dr

6 messages between Nov 11, 2008 and Nov 13, 2008.

replies: 5people: 5as markdown or json

Jim Jensen· Nov 11, 2008, 16:04 UTC · lore

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?
Shawn O. Pearce· Nov 11, 2008, 17:05 UTC · re: Jim Jensen · lore

Re: problem with git gui on cygwin.

Jim Jensen <jhjjhjjhj@gmail.com> wrote:
Show 7 quoted lines
> 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.

-- 
Shawn.
Alex Riesen· Nov 11, 2008, 18:08 UTC · re: Shawn O. Pearce · lore

Re: problem with git gui on cygwin.

Shawn O. Pearce, Tue, Nov 11, 2008 18:05:57 +0100:
Show 18 quoted lines
> Jim Jensen <jhjjhjjhj@gmail.com> wrote:
> > 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.
> 

Maybe the fact that wish is not a cygwin application (doesn't use use cygwin1.dll) is a hint?

Jim Jensen· Nov 12, 2008, 15:37 UTC · re: Jim Jensen · lore

Re: problem with git gui on cygwin.

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?
tejus das· Nov 13, 2008, 20:15 UTC · re: Jim Jensen · lore

Re: problem with git gui on cygwin.

Jim Jensen <jhjjhjjhj <at> gmail.com> writes:
Show 5 quoted lines
> 
> 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

Pascal Obry· Nov 13, 2008, 21:06 UTC · re: Jim Jensen · lore

Re: problem with git gui on cygwin.

Jim Jensen a écrit :
> 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
-- 
--|------------------------------------------------------
--| 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

← back to recent threads