X-Recipient: archive-cygwin AT delorie DOT com X-Spam-Check-By: sourceware.org Message-ID: <46F67AF7.3020003@byu.net> Date: Sun, 23 Sep 2007 08:40:55 -0600 From: Eric Blake User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.6) Gecko/20070728 Thunderbird/2.0.0.6 Mnenhy/0.7.5.666 MIME-Version: 1.0 To: cygwin AT cygwin DOT com, klavins AT netspace DOT net DOT au Subject: Re: git on cygwin howto? References: <004301c7fde4$b3af2800$1b0d7800$@net.au> In-Reply-To: <004301c7fde4$b3af2800$1b0d7800$@net.au> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-IsSubscribed: yes Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 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 > of? 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 ebb9 AT byu DOT net -----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 iD8DBQFG9nr384KuGfSFAYARAu42AJ9q6itWWXOqTx3rXekSqyLk1dwfvACeIE5y Fpx89y11gZ2QrWLWtwhx9gc= =W2TC -----END PGP SIGNATURE----- -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/