Method: Tddium::Git#root

Defined in:
lib/tddium/scm/git.rb

#rootObject



20
21
22
23
24
25
26
27
# File 'lib/tddium/scm/git.rb', line 20

def root
  root = `git rev-parse --show-toplevel 2>&1`
  if $?.exitstatus == 0 then
    root.chomp! if root
    return root
  end
  return Dir.pwd
end