From a62d3789bc55cd17c61561656260ea0eb2382395 Mon Sep 17 00:00:00 2001 From: DuratarskeyK Date: Tue, 3 May 2016 15:15:23 +0400 Subject: [PATCH] fix bug --- app/models/concerns/project/default_branch.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/app/models/concerns/project/default_branch.rb b/app/models/concerns/project/default_branch.rb index 5f5224be7..0280fea81 100644 --- a/app/models/concerns/project/default_branch.rb +++ b/app/models/concerns/project/default_branch.rb @@ -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