diff options
author | Douwe Maan <douwe@selenight.nl> | 2017-05-11 18:47:44 +0300 |
---|---|---|
committer | Douwe Maan <douwe@selenight.nl> | 2017-05-12 17:55:25 +0300 |
commit | ff82acf34319fbcd3598dba7c025715874ba903c (patch) | |
tree | 3b65465b4eb455798914f933a54e893abc2b5ce9 /app/models/issue.rb | |
parent | c266b5f57a09c13feef9c066856715f339076285 (diff) |
Consistently use monospace font for commit SHAs and branch and tag names
Diffstat (limited to 'app/models/issue.rb')
-rw-r--r-- | app/models/issue.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/issue.rb b/app/models/issue.rb index 27e3ed9bc7f..ecfc33ec1a1 100644 --- a/app/models/issue.rb +++ b/app/models/issue.rb @@ -174,7 +174,7 @@ class Issue < ActiveRecord::Base # Returns boolean if a related branch exists for the current issue # ignores merge requests branchs - def has_related_branch? + def has_related_branch? project.repository.branch_names.any? do |branch| /\A#{iid}-(?!\d+-stable)/i =~ branch end |