Skip to content

Commit 29bf6bb

Browse files
committed
Removed modern hash-syntax which broke compatibility for ruby 1.8
1 parent 9cd9b38 commit 29bf6bb

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
@@ -802,7 +802,7 @@ def log_path_options(opts)
802802

803803
def run_command(git_cmd, chdir = nil, &block)
804804
commands = [git_cmd]
805-
commands << {chdir: chdir} unless chdir.nil?
805+
commands << {:chdir => chdir} unless chdir.nil?
806806
if block_given?
807807
retval = IO.popen(*commands, &block)
808808
return retval, $?

0 commit comments

Comments
 (0)