3 ms·
Could you point to the documentation regarding per-directory access control? I find the documentation very difficult to navigate and I can't find anything relev
by kingosticks 10y ago
Could you point to the documentation regarding per-directory access control? I find the documentation very difficult to navigate and I can't find anything relevant. I'm also not sure how it could work.
- majewsky 10y ago> I'm also not sure how it could work Git repos can have an "update hook" that is executed during a push, after the new commits have been uploaded, but before the branch is updated to include the new commits. The hook can inspect the new commits, compare them to the old ones, and decide to reject the update. (It's a shell script, so every imaginable condition is possible.)
- kingosticks 10y agoBut that cannot prevent read access on a per-directory basis. I appreciate now that's not what you were referring to. I did find http://gitolite.com/gitolite/list-non-core/#partial-copy-selective-read-control-for-branches http://gitolite.com/gitolite/list-non-core/#partial-copy-sel... which seems to almost do what I wanted but that'll quickly explode to many copies of copies for any non-trivial situation. I know git can't do what I'm asking but every now and then something comes along and I gives me some hope before reality sets in.
- fanf2 10y agoI do have a colleague using a partial copy, but if you need fine-grained read access control, you either need lots of git repos, or a different version control system.