This is the mail archive of the
mailing list for the Cygwin project.
Re: git checkout altering mode of file [WAS: umask not working?]
- From: cyg Simple <cygsimple at gmail dot com>
- To: cygwin at cygwin dot com
- Date: Wed, 21 Mar 2018 09:49:19 -0400
- Subject: Re: git checkout altering mode of file [WAS: umask not working?]
- References: <firstname.lastname@example.org> <email@example.com> <E51C5B015DBD1348A1D85763337FB6D90189B91D4F@Remus.metastack.local>
- Reply-to: cygwin at cygwin dot com
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.
Problem reports: http://cygwin.com/problems.html
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple