Skip to content

Commit 0e98604

Browse files
author
Ivan Valdes (@ivanvc)
committed
Fixes config command in Ruby 1.9
In 1.9, Dir.chdir accepts a block with one argument, that is the path after it changed the directory.
1 parent b79de3a commit 0e98604

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/git/lib.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -321,7 +321,7 @@ def config_remote(name)
321321
end
322322

323323
def config_get(name)
324-
do_get = lambda do
324+
do_get = lambda do |path|
325325
command('config', ['--get', name])
326326
end
327327

0 commit comments

Comments
 (0)