From 2a42d3d10b7c57597c38f01025c7d014d8fe19bf Mon Sep 17 00:00:00 2001 From: scott Chacon Date: Thu, 31 Jan 2008 09:52:24 -0800 Subject: added patch from Bernd Ahlers to make repo_size a bit more portable --- lib/git/base.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/git') 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 -- cgit