#69 Allow deleting branches via git on forks
Merged 6 years ago by pingou. Opened 6 years ago by pingou.

file modified
+1 -1
@@ -148,7 +148,7 @@ 

              return False

  

          # Do not allow branch deletions

-         if revto == '0'*40:

+         if not project.is_fork and revto == '0'*40:

              self.info("Branch deletion is not allowed")

              return False

  

On dist-git we do not allow deleting branches via git (or the UI) in
main projects, but on forks they are both allowed.

Signed-off-by: Pierre-Yves Chibon pingou@pingoured.fr

Pull-Request has been merged by pingou

6 years ago
Metadata