Skip to content

Commit 2a42d3d

Browse files
author
scott Chacon
committed
added patch from Bernd Ahlers <bernd at ba-net.org> to make repo_size a bit more portable
1 parent e7e78e5 commit 2a42d3d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/git/base.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ def chdir
130130
def repo_size
131131
size = 0
132132
Dir.chdir(repo.path) do
133-
(size, dot) = `du -d0`.chomp.split
133+
(size, dot) = `du -s`.chomp.split
134134
end
135135
size.to_i
136136
end

0 commit comments

Comments
 (0)