summaryrefslogtreecommitdiff
path: root/app/models
diff options
context:
space:
mode:
Diffstat (limited to 'app/models')
-rw-r--r--app/models/repository.rb6
1 files changed, 6 insertions, 0 deletions
diff --git a/app/models/repository.rb b/app/models/repository.rb
index b18e98bdf47..384836951c3 100644
--- a/app/models/repository.rb
+++ b/app/models/repository.rb
@@ -1,4 +1,6 @@
class Repository
+ include Gitlab::ShellAdapter
+
attr_accessor :raw_repository
def initialize(path_with_namespace, default_branch)
@@ -33,6 +35,10 @@ class Repository
commits
end
+ def rm_branch(branch_name)
+ gitlab_shell.rm_branch(path_with_namespace, branch_name)
+ end
+
def round_commit_count
if commit_count > 10000
'10000+'