From 748d5d480275acfac391d1ab6d9aa8c77272c8a1 Mon Sep 17 00:00:00 2001 From: Ossi Salmi Date: Wed, 5 Dec 2012 20:43:00 +0200 Subject: [PATCH] Readded check for http_proxy variable in svn servers.erb template Apparenly file templates are parsed even when ensure => false. --- svn/templates/servers.erb | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/svn/templates/servers.erb b/svn/templates/servers.erb index 1e1c1aa..b3c1502 100644 --- a/svn/templates/servers.erb +++ b/svn/templates/servers.erb @@ -1,7 +1,9 @@ <% -http_proxy_host, http_proxy_port = http_proxy.split(":") -http_proxy_port = "80" if http_proxy_port.nil? +if has_variable?("http_proxy") + http_proxy_host, http_proxy_port = http_proxy.split(":") + http_proxy_port = "80" if http_proxy_port.nil? -%> [global] http-proxy-host = <%= http_proxy_host %> http-proxy-port = <%= http_proxy_port %> +<% end -%>