Re: problem using git on cygwin
- From
- srinivas naga vutukuri <srinivas.vutukuri@gmail.com>
- Date
- May 2, 2007, 04:04 UTC
- Message-ID
- <ace3f33d0705012104r3cf0b99ayb2ec2a69833e6ea1@mail.gmail.com>
- In-Reply-To
- <Pine.LNX.4.64.0704301343020.29859@racer.site>
Hi,
On 4/30/07, Johannes Schindelin <Johannes.Schindelin@gmx.de> wrote:
Show 11 quoted lines
> Hi, > > On Mon, 30 Apr 2007, srinivas naga vutukuri wrote: > > > $ git add project/test.c > > error: bad index file sha1 signature > > fatal: index file corrupt > > I could imagine that you do not have "binary mode" default for opening > files. >
i do't think it is in binary mode when opening the files. I am used vim to create a new file and editing through that. And also am used file format (set ff=unix).
Show 6 quoted lines
> However, if you do, maybe your .git/index went corrupt? > > As a workaround, you could try "git read-tree HEAD" and then "git add" > again, but make sure you have a backup of .git/index, since it could be a > bug in Git(cygwin) and if so, I'd like to fix it. >
I have taken the initial index (once repository created, after initial commit) to backup. and followed the above steps.
1. cp index index.orig 2. git read-tree HEAD 3. git add test.c (my new file)
But end up with the same errors. Would you think there is a bug in the git working on cygwin ?. I hope would the sequence help you in catching the bug.
> Ciao, > Dscho > >
best regards, srinivas.