hello everybody.
i need my employees to make only:
git clone --branch=first --depth=1 https://GodSvarog@bitbucket.org/Alex_Svar/sandbox.git
but not
git clone https://GodSvarog@bitbucket.org/Alex_Svar/sandbox.git
how can i set permissions on clone operations for my employees?
Hi @GodSvarog,
I'm afraid that it is not possible to enforce this. If a user has at least read access to a repository, they get access to all branches and they can clone either the entire repo or a certain branch only.
You can prevent certain users from pushing to certain branches with branch permissions, but it is not possible to enforce what type of clone they will make.
Kind regards,
Theodora
Thank you for the update, I'm glad you found a way around this.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.