X-Recipient: archive-cygwin@delorie.com
DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id
	:list-unsubscribe:list-subscribe:list-archive:list-post
	:list-help:sender:subject:to:references:reply-to:from:message-id
	:date:mime-version:in-reply-to:content-type
	:content-transfer-encoding; q=dns; s=default; b=Ob7CH0slUJsr4LxK
	a5mBiai60vzuY8pOWaSqw0d7DFcABmmXi+49KLVQYw/LWfoa5oCasoJQbz2/XfN4
	ZgWlyUGFAtzTyre+DcNv4ZWV7UBBhLoTHGXrIiMJkEy/tUCoUa4N7DeGrWIZLRzE
	W+MHCF7BCkrHTwb0cLOesVCzEpk=
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id
	:list-unsubscribe:list-subscribe:list-archive:list-post
	:list-help:sender:subject:to:references:reply-to:from:message-id
	:date:mime-version:in-reply-to:content-type
	:content-transfer-encoding; s=default; bh=tE5m+QrQBY/L7d2maiKTKr
	z6x88=; b=ldnG+sQmLaxFkjImPl+GHbVW+WDS1nzuR9aAf8oOW9ny915rZdEVTc
	ucd6o/cdZFg2rMXupqx8wao3tq2N2gXvU+RB+sUp6LJTEpPvQ0mNVRkRVExS7lpO
	I2aq3zXahxmN8sZtM/uyxAWktwCNhv5hnQn5q4XFli9qT6FiN8p9Y=
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
Authentication-Results: sourceware.org; auth=none
X-Virus-Found: No
X-Spam-SWARE-Status: No, score=-2.5 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=ham version=3.3.2 spammy=WAS, cooperate, HContent-Transfer-Encoding:8bit
X-HELO: mail-it0-f54.google.com
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;        d=1e100.net; s=20161025;        h=x-gm-message-state:subject:to:references:reply-to:from:message-id         :date:user-agent:mime-version:in-reply-to:content-language         :content-transfer-encoding;        bh=mSHWxtcw+o4VcDC410vjrFEpgUgAHvjMC2Y3ggAYkgg=;        b=pPYNKiAWHqaQwpTKVtGNDsBRcGei08hAc24WshD7xS6L9NG2R89jci8SnBjweJsRYs         YLr+ZpqeUbSuc63cRBIGYZHjj4H+2nMhgt2bzEFCIcoP6KxBxCQCwzEjDJTxBT67853r         OR0qED282d6Pu31qQePStiTTRrcO7Kxj9Ud9rcK9vy2M8zD1gyMnHK1K0jKqM8m50hiu         urhaYIKtrrq0FUghdgpCsBNMhaPgmBt27R2jJnfkq2nPgirlvEXwA2k+JOSOQ0izkg3g         ehUaitKk57rREuQn6TqbgmBSfm16n0545I6AKzQPUjZmk6aAMmgGs3cB89hxGox1bdsI         VBtA==
X-Gm-Message-State: AElRT7Hk22KzaIbrTTwNQk3H70b54L87Ukq07XHAcALc05C0gsz9A13A	Zgb3WAZhhuRDfTkU00jE0w5EDg==
X-Google-Smtp-Source: AG47ELuEUn8H7QRgGHkv41ESk8hDBsXyp+FRTu+tz9/yDo+jYAXJVImDJXur2GFy6AdEbAxlsXetrA==
X-Received: by 2002:a24:d309:: with SMTP id n9-v6mr4448468itg.0.1521640162090;        Wed, 21 Mar 2018 06:49:22 -0700 (PDT)
Subject: Re: git checkout altering mode of file [WAS: umask not working?]
To: cygwin@cygwin.com
References: <000f01d3bf80$a2e0d8c0$e8a28a40$@cl.cam.ac.uk> <1941712084.20180319200734@yandex.ru> <E51C5B015DBD1348A1D85763337FB6D90189B91D4F@Remus.metastack.local>
Reply-To: cygwin@cygwin.com
From: cyg Simple <cygsimple@gmail.com>
Message-ID: <e6b34e66-e8ba-1b55-925c-330238e69dcd@gmail.com>
Date: Wed, 21 Mar 2018 09:49:19 -0400
User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.6.0
MIME-Version: 1.0
In-Reply-To: <E51C5B015DBD1348A1D85763337FB6D90189B91D4F@Remus.metastack.local>
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 8bit
X-IsSubscribed: yes

On 3/21/2018 6:27 AM, David Allsopp wrote:
> 
> "umask is not a good idea in Windows" - where's that come from? (In the actual scenario where I'm being bitten by this, it's because a git checkout is altering files which were 644 to be 664, so whether it's precisely umask or not, the *change* of permissions is the problem).
> 

Git will also store the mode of the file.  Are you sure the file stored
within git doesn't have the 664 mode?  The other problems are mixing the
various git operators with Cygwin git.  For instance the embedded git of
Netbeans doesn't cooperate well with Cygwin git because of subtle
differences in the native versus Cygwin.

-- 
cyg Simple

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

