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 9cd9b38 commit 29bf6bbCopy full SHA for 29bf6bb
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
@@ -802,7 +802,7 @@ def log_path_options(opts)
802
803
def run_command(git_cmd, chdir = nil, &block)
804
commands = [git_cmd]
805
- commands << {chdir: chdir} unless chdir.nil?
+ commands << {:chdir => chdir} unless chdir.nil?
806
if block_given?
807
retval = IO.popen(*commands, &block)
808
return retval, $?
0 commit comments