diff options
author | scott Chacon <schacon@agadorsparticus.(none)> | 2008-01-31 09:52:24 -0800 |
---|---|---|
committer | scott Chacon <schacon@agadorsparticus.(none)> | 2008-01-31 09:52:24 -0800 |
commit | 2a42d3d10b7c57597c38f01025c7d014d8fe19bf (patch) | |
tree | df3f1ac87ce0945731ae5f333656785890ffb94a /lib | |
parent | e7e78e5191a8e9f269cb001e79434a2a4ba8e7c1 (diff) | |
download | third_party-ruby-git-2a42d3d10b7c57597c38f01025c7d014d8fe19bf.tar.gz third_party-ruby-git-2a42d3d10b7c57597c38f01025c7d014d8fe19bf.tar.xz third_party-ruby-git-2a42d3d10b7c57597c38f01025c7d014d8fe19bf.zip |
added patch from Bernd Ahlers <bernd at ba-net.org> to make repo_size a bit more portable
Diffstat (limited to 'lib')
-rw-r--r-- | lib/git/base.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/git/base.rb b/lib/git/base.rb index c5fac45..2201eb5 100644 --- a/lib/git/base.rb +++ b/lib/git/base.rb @@ -130,7 +130,7 @@ module Git def repo_size size = 0 Dir.chdir(repo.path) do - (size, dot) = `du -d0`.chomp.split + (size, dot) = `du -s`.chomp.split end size.to_i end |