Skip to contentSkip to conversation

TestSupport: Don't use git proxy for non-git:// urls.

PATCH Superseded Ian Campbell 2 participants 4 messages Feb 12, 2014

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 TestSupport: Don't use git proxy for non-git:// urls.

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.

---
 Osstest/TestSupport.pm | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
Osstest/TestSupport.pm +3 -1
index 236083e..45e5ecb 100644
@@ -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;
 }
 
Signature · 1 line
1.8.5.2
#1 lore raw

Ian Campbell writes ("[PATCH OSSTEST] TestSupport: Don't use git proxy for non-git:// urls."):

Quoted 3 lines

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.

This should probably be made to work for http:// and https://, at least.

Ian.

#2 lore raw
Quoted 7 lines · Ian Jackson

Ian Campbell writes ("[PATCH OSSTEST] TestSupport: Don't use git proxy for non-git:// urls."):

Quoted 3 lines

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.

This should probably be made to work for http:// and https://, at least.

The proxy supports those?

Trivial enough patch, I'll put it on my list.

Ian.

#3 lore raw

Ian Campbell writes ("Re: [PATCH OSSTEST] TestSupport: Don't use git proxy for non-git:// urls."):

Quoted 5 lines · Ian Jackson
Quoted 2 lines

This should probably be made to work for http:// and https://, at least.

The proxy supports those?

Yes.

Quoted 1 line

Trivial enough patch, I'll put it on my list.

Thanks,
Ian.