Fix specs
Spinach was right, I was a fool..
This commit is contained in:
parent
481e73fb76
commit
9337406671
2 changed files with 2 additions and 1 deletions
|
@ -98,6 +98,7 @@ class Issue < ActiveRecord::Base
|
||||||
end
|
end
|
||||||
|
|
||||||
def related_branches
|
def related_branches
|
||||||
|
return [] if self.project.empty_repo?
|
||||||
self.project.repository.branch_names.select do |branch|
|
self.project.repository.branch_names.select do |branch|
|
||||||
branch =~ /\A#{iid}-(?!\d+-stable)/i
|
branch =~ /\A#{iid}-(?!\d+-stable)/i
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue