Skip to content

Commit e22392a

Browse files
committed
Removed modern hash-syntax which broke compatibility for ruby 1.8
1 parent 6d4d46a commit e22392a

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

lib/git/base.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ def chdir # :yields: the Git::Path
119119

120120
# returns the repository size in bytes
121121
def repo_size
122-
return IO.popen("du -s", {chdir: repo.path}).read.chomp.split.first.to_i
122+
return IO.popen("du -s", {:chdir => repo.path}).read.chomp.split.first.to_i
123123
end
124124

125125
#g.config('user.name', 'Scott Chacon') # sets value

lib/git/lib.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -808,7 +808,7 @@ def log_path_options(opts)
808808

809809
def run_command(git_cmd, chdir = nil, &block)
810810
commands = [git_cmd]
811-
commands << {chdir: chdir} unless chdir.nil?
811+
commands << {:chdir => chdir} unless chdir.nil?
812812
if block_given?
813813
retval = IO.popen(*commands, &block)
814814
return retval, $?

0 commit comments

Comments
 (0)