Re: problem using git on cygwin

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



"srinivas naga vutukuri" <srinivas.vutukuri@xxxxxxxxx> writes:

> Hi,
>
> On 4/30/07, Johannes Schindelin <Johannes.Schindelin@xxxxxx> 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

-
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]