Method: Git::Base#repo_size

Defined in:
lib/git/base.rb

#repo_sizeObject

returns the repository size in bytes



121
122
123
124
125
# File 'lib/git/base.rb', line 121

def repo_size
  Dir.chdir(repo.path) do
    return `du -s`.chomp.split.first.to_i
  end
end