problem with git gui on cygwin.

6 messages, 5 authors, 2016-06-15 · open the first message on its own page

problem with git gui on cygwin.

From: Jim Jensen <hidden>
Date: 2016-06-15 22:45:38

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?

Re: problem with git gui on cygwin.

From: Shawn O. Pearce <hidden>
Date: 2016-06-15 22:45:38

Jim Jensen [off-list ref] 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.

-- 
Shawn.

Re: problem with git gui on cygwin.

From: Alex Riesen <hidden>
Date: 2016-06-15 22:45:38

Shawn O. Pearce, Tue, Nov 11, 2008 18:05:57 +0100:
Jim Jensen [off-list ref] wrote:
quoted
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?

Re: problem with git gui on cygwin.

From: Jim Jensen <hidden>
Date: 2016-06-15 22:45:38

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?

Re: problem with git gui on cygwin.

From: tejus das <hidden>
Date: 2016-06-15 22:45:39

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

Re: problem with git gui on cygwin.

From: Pascal Obry <hidden>
Date: 2016-06-15 22:45:39

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
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help