summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorscott Chacon <schacon@agadorsparticus.(none)>2008-01-31 09:52:24 -0800
committerscott Chacon <schacon@agadorsparticus.(none)>2008-01-31 09:52:24 -0800
commit2a42d3d10b7c57597c38f01025c7d014d8fe19bf (patch)
treedf3f1ac87ce0945731ae5f333656785890ffb94a
parente7e78e5191a8e9f269cb001e79434a2a4ba8e7c1 (diff)
downloadthird_party-ruby-git-2a42d3d10b7c57597c38f01025c7d014d8fe19bf.zip
third_party-ruby-git-2a42d3d10b7c57597c38f01025c7d014d8fe19bf.tar.gz
third_party-ruby-git-2a42d3d10b7c57597c38f01025c7d014d8fe19bf.tar.xz
added patch from Bernd Ahlers <bernd at ba-net.org> to make repo_size a bit more portable
-rw-r--r--lib/git/base.rb2
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