diff options
author | scott Chacon <schacon@agadorsparticus.corp.reactrix.com> | 2007-11-20 11:53:07 -0800 |
---|---|---|
committer | scott Chacon <schacon@agadorsparticus.corp.reactrix.com> | 2007-11-20 11:53:07 -0800 |
commit | 2cef1e66c395296620225c7ffd77b772c6ad4215 (patch) | |
tree | 655e9910eb40fe6bf7a7faed6c0c2d90a187266a /lib/git | |
parent | 13f7daaf27656fefe4c266e9b53a53010caf4177 (diff) | |
download | third_party-ruby-git-2cef1e66c395296620225c7ffd77b772c6ad4215.tar.gz third_party-ruby-git-2cef1e66c395296620225c7ffd77b772c6ad4215.tar.xz third_party-ruby-git-2cef1e66c395296620225c7ffd77b772c6ad4215.zip |
added a timer to gitweb, so I can see if i'm speeding it up
took out another git call
Diffstat (limited to 'lib/git')
-rw-r--r-- | lib/git/lib.rb | 7 |
1 files changed, 4 insertions, 3 deletions
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 |