My favorites | Sign in
Project Home Downloads Wiki Issues Source
New issue   Search
for
  Advanced search   Search tips   Subscriptions
Issue 2179: Separate Delete Permission
6 people starred this issue and may be notified of changes. Back to list
Status:  New
Owner:  ----


Sign in to add a comment
 
Reported by nickdgri...@gmail.com, Oct 10, 2013
I'd like it to be possible to assign a delete permission to a reference that is independent of the "Force Push" permission so that users are able to delete remote branches without being able to interfere with the history of them. I'd much rather someone just deleted a branch (which could be pushed back by someone else if done in error) than force pushed a change which could cause even more problems.
Oct 10, 2013
#1 nickdgri...@gmail.com
Ti give an example of why I'd want this, we are using Git Flow and therefore the temporary nature of feature, release, and hotfix branches means that they can exist on the central repository for a period of time before needing to be deleted once they are finished with. Given that I think it makes sense to control these branch types using "refs/heads/feature/*" (as an example) I do not want to allow a user access to be able to force push across any refs/heads/feature branch but I also do not want to define a reference per feature branch (as that is impractical).
Feb 27, 2014
#2 nic...@eriksson.cc
To my mind this is a very good suggestion. It would also make sense, imho, to define some sort of "force" that allows certain (and only certain) users to delete branches that hasn't been integrated yet.
Jan 27, 2015
#3 jonasb...@gmail.com
I'm missing this feature too. Our setup is, that developers have access to create "feature/*" branches, but only push commits to "refs/for/feature/*", i.e. with review, as "feature/*" branches are allowed to be merged to "master" since they by convention in our setup have already been reviewed.
But, a developer should also be able to abandon a "feature" branch entirely, either dropping the feature or starting a brand new implementation of it. And since I do not want to give developers force push access rights to "feature/*" to enable them to delete "feature" branches, because they can then also push directly to "refs/heads/feature/*" thus bypassing review, I would like a separate branch delete permission.
As it is setup now for us, then whenever a "feature" branch is done, and thus merged to "master", or abandoned by the developer, then an integrator/admin needs to periodically delete old obsolete "feature" branches.
Sign in to add a comment

Powered by Google Project Hosting