Re: No fchmod() under msygit - Was: Re: [PATCH 00/14] Add submodule test harness
- From
- Nico Williams <nico@cryptonector.com>
- Date
- Jul 14, 2014, 14:02 UTC
- Message-ID
- <CAK3OfOie62GORn9f7CUXj-TKQiHb++ZYz5Xm0fVL6rYOArm5eg@mail.gmail.com>
- In-Reply-To
- <CAK3OfOjoqOsL5GnJAC251gqRoQo_4qwKMicLSod=7ZA69SL68w@mail.gmail.com>
Show 5 quoted lines
> Still, git might like to know what ACLs to apply to files at checkout > time. That would be a vast new feature, I think, and probably not > worth it, particularly since that would require dealing with the > different types of ACLs: NTFS/NFSv4/ZFS on the one hand, POSIX Draft > on the other, plus AFS and who knows what else -- ETOOMUCH IMO.
To complete that thought...
Inheritable ACLs + chmod should suffice. The user should setup inheritable ACLs for the directory where a repo is to be cloned, then on checkout git should just apply mode changes in such a way as to leave ACL "shapes" unchanged, only adding or removing bits from non-DENY ACEs according to the saved file modes.
Inheritable ACEs should be left as-is, since git doesn't track directory permissions (right?), or if it did, then those should be edited just like normal ACEs.
Nico --