This is the mail archive of the
mailing list for the Cygwin project.
Re: git on cygwin howto?
- From: Eric Blake <ebb9 at byu dot net>
- To: cygwin at cygwin dot com, klavins at netspace dot net dot au
- Date: Sun, 23 Sep 2007 08:40:55 -0600
- Subject: Re: git on cygwin howto?
- References: <email@example.com>
-----BEGIN PGP SIGNED MESSAGE-----
According to Peter Klavins on 9/23/2007 7:21 AM:
> Could someone please help me use git on cygwin? Ah, by the way, I use
> DOS line ends on cygwin, i.e., \r\n not \n like on Linux. Could that be
> the problem? If so, then maybe it's something cygwin git could be aware
That is exactly the problem. Git won't work if spurious \r appear in the
files, which is what happens on a text mount when a file is created in
text mode and reopened in binary mode. Mount your git repository on a
binary mount instead. A patch was already proposed upstream to make
git.exe always open files in binary mode, but I don't know whether it was
ever accepted, and even if it was, it doesn't help for those git actions
which are still independent scripts instead of built into git.exe. I
suppose that next time I try a release, I could spend more time trying to
support text mode, but it isn't my highest priority, because git contains
so many disparate tools that would all need auditing.
Don't work too hard, make some time for fun as well!
Eric Blake firstname.lastname@example.org
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (Cygwin)
Comment: Public key at home.comcast.net/~ericblake/eblake.gpg
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
-----END PGP SIGNATURE-----
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Problem reports: http://cygwin.com/problems.html