diff options
author | Zeger-Jan van de Weg <zegerjan@gitlab.com> | 2016-03-17 13:48:07 +0300 |
---|---|---|
committer | Zeger-Jan van de Weg <zegerjan@gitlab.com> | 2016-03-17 14:05:54 +0300 |
commit | 9337406671755ebd9175866cd86f1d6da4265d49 (patch) | |
tree | 4b76b408907108351b5c9eb9824edba867ad90d8 /app | |
parent | 481e73fb76bbdc845ba6899682ab5fa8c05b11bc (diff) |
Fix specs
Spinach was right, I was a fool..
Diffstat (limited to 'app')
-rw-r--r-- | app/models/issue.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/app/models/issue.rb b/app/models/issue.rb index 781298a63b2..2447f860c5a 100644 --- a/app/models/issue.rb +++ b/app/models/issue.rb @@ -98,6 +98,7 @@ class Issue < ActiveRecord::Base end def related_branches + return [] if self.project.empty_repo? self.project.repository.branch_names.select do |branch| branch =~ /\A#{iid}-(?!\d+-stable)/i end |