X-Recipient: archive-cygwin@delorie.com
X-SWARE-Spam-Status: No, hits=-1.5 required=5.0	tests=AWL,BAYES_00
X-Spam-Check-By: sourceware.org
Message-ID: <4EFB9714.2070103@bopp.net>
Date: Wed, 28 Dec 2011 16:24:20 -0600
From: Jeremy Bopp <jeremy@bopp.net>
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:8.0) Gecko/20111124 Thunderbird/8.0
MIME-Version: 1.0
To: cygwin@cygwin.com
Subject: Re: Distributed Git not compiled under Cygwin?
References: <33047124.post@talk.nabble.com> <4EFB8FC1.7060307@bopp.net>
In-Reply-To: <4EFB8FC1.7060307@bopp.net>
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
X-IsSubscribed: yes
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com

On 12/28/2011 03:53 PM, Jeremy Bopp wrote:
> I also remember reading somewhere once that you should be able create a
> configuration template that would be used by new repositories created by
> git init or git clone that can set the property as you need.  I can't
> find any links for that at the moment though. :-/

The manpages for git init and git clone have the information about the
template directory.  See the --template option for both commands.

Sadly, neither this option nor the system-wide /etc/gitconfig file will
work in this case because apparently core.filemode is always set in the
local config for the repository being created as determined by the build
time settings.  This overrides the setting from the template as well as
the system-wide setting in /etc/gitconfig.

I don't see any way around this except to either build your own Git that
doesn't include the Cygwin changes or run a git config command to set
core.filemode after cloning or initializing a repository.  Sorry if I
got your hopes up.  Hopefully, the Cygwin changes aren't really a
problem for you.

-Jeremy

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

