Module: GitBreeze::Repository

Defined in:
lib/git_breeze/repository.rb

Class Method Summary collapse

Class Method Details

.ensure_existsObject



12
13
14
# File 'lib/git_breeze/repository.rb', line 12

def self.ensure_exists
  root
end

.rootObject



6
7
8
9
10
# File 'lib/git_breeze/repository.rb', line 6

def self.root
  path = `git rev-parse --show-toplevel`.chomp
  abort unless $CHILD_STATUS.exitstatus == 0
  path
end