Re: Git Cygwin - unable to create any repository - help!
- From
Alex Riesen <raa.lkml@gmail.com>
- Date
- Jan 15, 2008, 21:20 UTC
- Message-ID
- <20080115212022.GC3213@steel.home>
- In-Reply-To
- <a5eb9c330801151212y30cf4f63r9c294ba33da2b8f@mail.gmail.com>
Paul Umbers, Tue, Jan 15, 2008 21:12:45 +0100:
Show 11 quoted lines
> > > > Does the object exists at all? Try > > > > ls -l .git/d9/b06fceac52f6c24357e6a7f85c601088381152 > > > > Is it possible to get a hold of this repo (just the .git directly > > after "git add .")? It would be interesting to see the nature of the > > corruption. > > > git ls (see below) returns nothing - it looks like the object doesn't > exist at all. I've attached a .zip of the entire test directory (one
zip is a bit lying: it does not keep the attributes of the files the way cygwin programs see them. For instance, it not known whether the hooks (.git/hooks) where executable at the time.
> text file plus .git). This is after "git init" followed by "git add ." > > What do you think?
I think it has failed already at "git add". From looking at the code it is hard for the current git-add (builtin-add.c) to fail silently.
Hmm... What "git version" returns for you? (the .git/config contains filemode=true, which cygwin breaks every time).
Of course, it would be interesting to know if the current git works for you. Or the MinGW port:
http://code.google.com/p/msysgit/downloads/list
It used to conflict with cygwin, though.
If the current git fails, I'd suggest to instrument write_sha1_file in sha1_file.c and see if it really manages to create temporary file and rename it to sha1 file (that d9/b06fceac52f6c24357e6a7f85c601088381152). I suspect either rename or link failing silently (IOW, it fails to create the new name under objects/d9/ but returns 0(no error) anyway).