Module: Hookers::Git
- Extended by:
- Git
- Included in:
- Git
- Defined in:
- lib/hookers/git/setup.rb,
lib/hookers/git/commit.rb,
lib/hookers/git/repository.rb
Defined Under Namespace
Classes: Commit, Repository
Instance Method Summary collapse
Instance Method Details
#root_path ⇒ Object
8 9 10 11 12 13 14 15 |
# File 'lib/hookers/git/setup.rb', line 8 def root_path path = Dir.pwd while (path != "/") and ! Dir.entries(path).include?(".git") do path = File.("..", path) end path end |