git-scm-nil.diff

Toshi MARUYAMA, 2011-05-30 02:43

Download (873 Bytes)

View differences:

app/models/repository.rb
119 119
  end
120 120

  
121 121
  def default_branch
122
    scm.default_branch
122
    # scm.default_branch
123
    nil
123 124
  end
124 125

  
125 126
  def properties(path, identifier=nil)
app/models/repository/git.rb
75 75
    scm.tags
76 76
  end
77 77

  
78
  def default_branch
79
    scm.default_branch
80
  end
81

  
78 82
  def find_changeset_by_name(name)
79 83
    return nil if name.nil? || name.empty?
80 84
    e = changesets.find(:first, :conditions => ['revision = ?', name.to_s])