File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -119,7 +119,7 @@ def chdir # :yields: the Git::Path
119
119
120
120
# returns the repository size in bytes
121
121
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
123
123
end
124
124
125
125
#g.config('user.name', 'Scott Chacon') # sets value
Original file line number Diff line number Diff line change @@ -802,7 +802,7 @@ def log_path_options(opts)
802
802
803
803
def run_command ( git_cmd , chdir = nil , &block )
804
804
commands = [ git_cmd ]
805
- commands << { chdir : chdir } unless chdir . nil?
805
+ commands << { :chdir => chdir } unless chdir . nil?
806
806
if block_given?
807
807
retval = IO . popen ( *commands , &block )
808
808
return retval , $?
You can’t perform that action at this time.
0 commit comments