diff --git a/lib/redmine/scm/adapters/git_adapter.rb b/lib/redmine/scm/adapters/git_adapter.rb index 6d012a7ec..88acc2ed5 100644 --- a/lib/redmine/scm/adapters/git_adapter.rb +++ b/lib/redmine/scm/adapters/git_adapter.rb @@ -102,7 +102,7 @@ module Redmine def default_branch bras = self.branches - return if bras.nil? + return nil if bras.nil? bras.include?('master') ? 'master' : bras.first end