We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6d4d46a commit e22392aCopy full SHA for e22392a
lib/git/base.rb
@@ -119,7 +119,7 @@ def chdir # :yields: the Git::Path
119
120
# returns the repository size in bytes
121
def repo_size
122
- return IO.popen("du -s", {chdir: repo.path}).read.chomp.split.first.to_i
+ return IO.popen("du -s", {:chdir => repo.path}).read.chomp.split.first.to_i
123
end
124
125
#g.config('user.name', 'Scott Chacon') # sets value
lib/git/lib.rb
@@ -808,7 +808,7 @@ def log_path_options(opts)
808
809
def run_command(git_cmd, chdir = nil, &block)
810
commands = [git_cmd]
811
- commands << {chdir: chdir} unless chdir.nil?
+ commands << {:chdir => chdir} unless chdir.nil?
812
if block_given?
813
retval = IO.popen(*commands, &block)
814
return retval, $?
0 commit comments