solstice333
solstice333

Reputation: 3649

Git - From a server side hook, is it possible to control which branches a client can fetch

I have some automation occurring that requires the creation of extra branches, and I don't want the client to fetch these remote branches to his/her local repo. Is this possible with the use of a server side hook?

Upvotes: 2

Views: 48

Answers (1)

Royal Pinto
Royal Pinto

Reputation: 2911

Neither git has a pre-fetch hook nor it supports branch level permissions.

However you could use tools like Gitolite to manage branch level permissions and prevent internal branches from being pulled.

Upvotes: 2

Related Questions