Method: Git.bare

Defined in:
lib/git.rb

.bare(git_dir, options = {}) ⇒ Object

open a bare repository

this takes the path to a bare git repo it expects not to be able to use a working directory so you can’t checkout stuff, commit things, etc. but you can do most read operations



82
83
84
# File 'lib/git.rb', line 82

def self.bare(git_dir, options = {})
  Base.bare(git_dir, options)
end