1

Does github.com has support for adding virual refs like gilote as discussed in gitolite or gitosis: permission on directory inside of the repository ?

I need to restrict access at directory level inside the repo.

Any clues?

Community
  • 1
  • 1
Nullpoet
  • 10,949
  • 20
  • 48
  • 65

1 Answers1

1

No, at least not as gitolite VREF.

On Github side, there are a post-receive hook or webhooks, but the are after the push.

The only way to really guard a directory within one Github repo is to make/export that directory in its own GitHub repo, and declare it as a submodule in the first repo.

VonC
  • 1,262,500
  • 529
  • 4,410
  • 5,250
  • +1, but I would like to note that if you really need fine-grained control over stuff like that, github is probably not the correct hoster for your. – Chronial Jan 21 '13 at 16:12
  • @Chronial right you are. You need to balance the need for a public repo and fine-grained control. The latter means setting up your own server. – VonC Jan 21 '13 at 17:00