Method: Git::Base.repository_default_branch
- Defined in:
- lib/git/base.rb
permalink .repository_default_branch(repository, options = {}) ⇒ String
Returns the name of the default branch of the given repository
30 31 32 |
# File 'lib/git/base.rb', line 30 def self.repository_default_branch(repository, = {}) Git::Lib.new(nil, [:log]).repository_default_branch(repository) end |