git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: problem using git on cygwin

From
Johannes Schindelin <johannes.schindelin@gmx.de>
Date
Apr 30, 2007, 11:46 UTC
Message-ID
<Pine.LNX.4.64.0704301343020.29859@racer.site>
In-Reply-To
<ace3f33d0704292325t6ab16075rbdeac40a437920e8@mail.gmail.com>
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.

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.

Ciao, Dscho

Previous: srinivas naga vutukuriNext: srinivas naga vutukuri
Message 2 of 5 in “problem using git on cygwin”
  1. srinivas naga vutukuriApr 30, 2007
  2. Johannes SchindelinApr 30, 2007
  3. srinivas naga vutukuriMay 2, 2007
  4. Jari AaltoMay 2, 2007
  5. Alex RiesenMay 2, 2007

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.