scm: git: prevent showing trace when repository path changed.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@5137 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
parent
78f11a232f
commit
dbb0d880a7
|
@ -101,7 +101,9 @@ module Redmine
|
|||
end
|
||||
|
||||
def default_branch
|
||||
branches.include?('master') ? 'master' : branches.first
|
||||
bras = self.branches
|
||||
return if bras.nil?
|
||||
bras.include?('master') ? 'master' : bras.first
|
||||
end
|
||||
|
||||
def entries(path=nil, identifier=nil)
|
||||
|
|
Loading…
Reference in New Issue