From 2cef1e66c395296620225c7ffd77b772c6ad4215 Mon Sep 17 00:00:00 2001 From: scott Chacon Date: Tue, 20 Nov 2007 11:53:07 -0800 Subject: added a timer to gitweb, so I can see if i'm speeding it up took out another git call --- lib/git/lib.rb | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'lib') diff --git a/lib/git/lib.rb b/lib/git/lib.rb index 256d4b6..eb06875 100644 --- a/lib/git/lib.rb +++ b/lib/git/lib.rb @@ -295,9 +295,10 @@ module Git def config_remote(name) hsh = {} - command_lines('config', ['--get-regexp', "remote.#{name}"]).each do |line| - (key, value) = line.split - hsh[key.gsub("remote.#{name}.", '')] = value + config_list.each do |key, value| + if /remote.#{name}/.match(key) + hsh[key.gsub("remote.#{name}.", '')] = value + end end hsh end -- cgit