##// END OF EJS Templates
feat(branch removal trough UI): Added delete_branch method for git. Fixes: RCCE-75
ilin.s -
r1246:f0acf3f6 default
parent child Browse files
Show More
@@ -551,6 +551,13 b' class GitRemote(RemoteBase):'
551 551 return _branch(context_uid, repo_id, commit_id)
552 552
553 553 @reraise_safe_exceptions
554 def delete_branch(self, wire, branch_name):
555 repo_init = self._factory.repo_libgit2(wire)
556 with repo_init as repo:
557 if branch := repo.lookup_branch(branch_name):
558 branch.delete()
559
560 @reraise_safe_exceptions
554 561 def commit_branches(self, wire, commit_id):
555 562 cache_on, context_uid, repo_id = self._cache_on(wire)
556 563 region = self._region(wire)
General Comments 0
You need to be logged in to leave comments. Login now