This commit is contained in:
DuratarskeyK 2016-05-03 15:15:23 +04:00
parent 7571352be1
commit a62d3789bc
1 changed files with 1 additions and 0 deletions

View File

@ -15,6 +15,7 @@ module Project::DefaultBranch
# Returns found String branch name.
def resolve_default_branch
return default_branch unless owner.is_a?(Group) && owner.default_branch.present?
default_branch == 'master' ? owner.default_branch : default_branch
end