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:
Toshi MARUYAMA 2011-03-15 07:14:19 +00:00
parent 78f11a232f
commit dbb0d880a7
1 changed files with 3 additions and 1 deletions

View File

@ -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)