Readded check for http_proxy variable in svn servers.erb template

Apparenly file templates are parsed even when ensure => false.
This commit is contained in:
Ossi Salmi 2012-12-05 20:43:00 +02:00
parent 3071640518
commit 748d5d4802

View file

@ -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 -%>