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

Re: problem using git on cygwin

From
Jari Aalto <jari.aalto@cante.net>
Date
May 2, 2007, 11:55 UTC
Message-ID
<abwne8y7.fsf@cante.net>
In-Reply-To
<ace3f33d0705012104r3cf0b99ayb2ec2a69833e6ea1@mail.gmail.com>
"srinivas naga vutukuri" <srinivas.vutukuri@gmail.com> writes:
Show 17 quoted lines
> Hi,
>
> On 4/30/07, Johannes Schindelin <Johannes.Schindelin@gmx.de> wrote:
>> 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).
I think Johannes meant Cygwn filesystem mount attributes. Please run
    $ mount
And you should see "binmode". Here are examples:
    D:\cygwin on / type system (binmode)
    D:\cygwin\bin on /usr/bin type system (binmode)
    D:\cygwin\lib on /usr/lib type system (binmode)
    E:\data\src on /usr/src type system (binmode)

If not, you need to remount directories with "-b" option. See man mount(1)

Jari
Previous: srinivas naga vutukuriNext: Alex Riesen
Message 4 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.