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 94f389b commit dec7f68Copy full SHA for dec7f68
lib/git/lib.rb
@@ -326,7 +326,9 @@ def config_get(name)
326
end
327
328
if @git_dir
329
- Dir.chdir(@git_dir, &do_get)
+ Dir.chdir(@git_dir) do
330
+ do_get.call
331
+ end
332
else
333
build_list.call
334
@@ -342,7 +344,9 @@ def config_list
342
344
343
345
346
- Dir.chdir(@git_dir, &build_list)
347
348
+ build_list.call
349
350
351
352
0 commit comments