[refs #878] fixed last value
This commit is contained in:
parent
7185a46ed7
commit
927c352f8a
|
@ -182,7 +182,7 @@ class Project < ActiveRecord::Base
|
|||
if repo.branches_and_tags.map(&:name).include?(treeish || default_branch)
|
||||
treeish || default_branch
|
||||
else
|
||||
repo.branches_and_tags[0].try(:name) || 'master'
|
||||
repo.branches_and_tags[0].try(:name) || default_branch
|
||||
end
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in New Issue