Method: Pkg::Util::Git.repo?
- Defined in:
- lib/packaging/util/git.rb
.repo? ⇒ Boolean
Return true if we’re in a git repo, otherwise false
108 109 110 111 112 113 |
# File 'lib/packaging/util/git.rb', line 108 def repo? Pkg::Util.in_project_root do _, _, ret = Pkg::Util::Execution.capture3("#{Pkg::Util::Tool::GIT} rev-parse --git-dir") Pkg::Util::Execution.success?(ret) end end |