delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2007/09/03/23:00:09

X-Spam-Check-By: sourceware.org
Message-ID: <46DCCA55.4080802@byu.net>
Date: Mon, 03 Sep 2007 21:00:37 -0600
From: Eric Blake <ebb9 AT byu DOT net>
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
Subject: Re: git: Tralining whitespace error during commit
References: <70952A932255A2489522275A628B97C304EAD90B AT xmb-sjc-233 DOT amer DOT cisco DOT com> <loom DOT 20070809T190201-223 AT post DOT gmane DOT org>
In-Reply-To: <loom.20070809T190201-223@post.gmane.org>
X-IsSubscribed: yes
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
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 Eric Blake on 8/9/2007 11:07 AM:
> And yet another, which I have been considering doing the next time I package 
> git (right now, I'm kind of waiting for git 1.5.3 to come out),

1.5.3 is out, so I'm in the middle of packaging it.

> is to override 
> the upstream git's decision that on cygwin, the templates installed 
> in /usr/share/git-core/templates are installed with executable permissions; 
> whereas on Linux, they are installed without.  In other words, _somebody_ (not 
> me) thought that because windows permissions can't be relied on, that ALL git 
> hooks should be enabled by default;

And that somebody is.... setup.exe.  The tar file has the correct
non-executable permissions, but setup.exe insists on giving the files full
executable permissions, perhaps because they start with #!.  So I'm adding
a postinstall that undoes the damage.

> whereas on Linux, where permissions are 
> reliable, ALL git hooks are disabled by default and you must chmod +x them to 
> turn them on.  This seems inconsistent to me, but not to the point that I have 
> complained upstream on the git mailing list; perhaps you'd like to raise the 
> point there?

Not an upstream bug after all.

- --
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

iD8DBQFG3MpU84KuGfSFAYARAl+5AKCASnJtpF1NyLOZk6BRKlOMgHgAugCggB56
2KmMFb7BTPR6yNVOYFXjBJE=
=JSN2
-----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/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019