Re: [Feature Request] Option to make .git not read-only in cloned repos

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Philip Oakley <philipoakley@iee.email> writes:

> Surely (?), if we are considering our stored revisions to be
> immutable, then removing the write bit is the right thing to do.
> If I understand correctly (*) we don't separate the delete permission
> from 'no-write' permissions, so the consequence will be that such
> files are read-only.

And directories (e.g. .git/objects/) are not made read-only for
obvious reasons.  Read-only files inside a writeable directory can
be deleted just like read-write ones can be (iow, the "delete
permission" comes from the "write permission" of the containing
directory) so "rm -r .git" should "work" just fine (depending on the
definition of working, of course---it is discouraged to throw away
your work).

Perhaps Windows filesystem or file manager application behave
differently and tries to protect users from removing read-only files
in read-write folders by mistake, or something?  If that is what the
thread is complaining about, I agree that's a bit unfortunate.
Perhaps Windows port can implement "this is an immultable file---do
not write into it" slightly differently in adjust_shared_perm()?



[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]

  Powered by Linux