From: Ian Campbell Subject: [PATCH OSSTEST] TestSupport: Don't use git proxy for non-git:// urls. Date: Wed, 12 Feb 2014 14:16:34 +0000 Message-ID: <1392214594-26668-1-git-send-email-ian.campbell@citrix.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: ian.jackson@eu.citrix.com Cc: Ian Campbell , xen-devel@lists.xen.org List-Id: xen-devel@lists.xenproject.org After this I was stymied by ssh host keys and other roadblocks and just pushed the branch to my xenbits tree but I think this is still correct as far as it goes. Signed-off-by: Ian Campbell --- Osstest/TestSupport.pm | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Osstest/TestSupport.pm b/Osstest/TestSupport.pm index 236083e..45e5ecb 100644 --- a/Osstest/TestSupport.pm +++ b/Osstest/TestSupport.pm @@ -988,7 +988,9 @@ sub file_simple_write_contents ($$) { sub git_massage_url ($) { my ($url) = @_; - if ($c{GitCacheProxy}) { $url = $c{GitCacheProxy}.$url; } + if ($url =~ m,^git://, && $c{GitCacheProxy}) { + $url = $c{GitCacheProxy}.$url; + } return $url; } -- 1.8.5.2