Method: Git::Base#repo_size
- Defined in:
- lib/git/base.rb
#repo_size ⇒ Object
returns the repository size in bytes
146 147 148 149 150 |
# File 'lib/git/base.rb', line 146 def repo_size Dir.chdir(repo.path) do return `du -s`.chomp.split.first.to_i end end |