From 0e986047d759d9ff34ef86512639090f613d628b Mon Sep 17 00:00:00 2001 From: "Ivan Valdes (@ivanvc)" Date: Tue, 8 Nov 2011 22:02:11 -0600 Subject: [PATCH] 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. --- lib/git/lib.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/git/lib.rb b/lib/git/lib.rb index 52fb2e6c..03718ec4 100644 --- a/lib/git/lib.rb +++ b/lib/git/lib.rb @@ -321,7 +321,7 @@ def config_remote(name) end def config_get(name) - do_get = lambda do + do_get = lambda do |path| command('config', ['--get', name]) end