From patchwork Fri Apr 25 15:15:20 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ian Campbell X-Patchwork-Id: 29087 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-vc0-f200.google.com (mail-vc0-f200.google.com [209.85.220.200]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id EC00E203AC for ; Fri, 25 Apr 2014 15:17:20 +0000 (UTC) Received: by mail-vc0-f200.google.com with SMTP id lg15sf14112350vcb.11 for ; Fri, 25 Apr 2014 08:17:20 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:delivered-to:from:to:date:message-id :mime-version:cc:subject:precedence:list-id:list-unsubscribe :list-post:list-help:list-subscribe:sender:errors-to :x-original-sender:x-original-authentication-results:mailing-list :list-archive:content-type:content-transfer-encoding; bh=Oz/Gbonnej4v5+JMIB5rNzsVTqtLFmtBvZNu+92ZerE=; b=F+VjDb8lHr3xGgec/W/8yPmwygrgZvQff1z4YeK3cUvsAQyzyVGW7LK6pwxZDsZ1mg PSVv1qimPOi8RXWNJ8sZ6SQIcg/bnZEsgftS6xb2R/CjY2PFWZE7Ubhy64uXy7rL0KLj m92bYA0uQuKYnT13Ljx035fWB513jJfSaGryDYiN5EovImomFAwPAxVvO4+kihWxgSlo 2xqj5zTuqj+4LJ6ZCTlGAbGgEWW1QUi2CqE+JY+7J6jFOwhSr4y9AwghTbfXWVF80SrG 97oS7EsF0oy73fboPooIOIgHqTBpq/fNegF5RTmqDc4HPNjDKwaCzXidLxr4p0wxFyvT RElw== X-Gm-Message-State: ALoCoQkY5LfZC39sl2aMbBUZIIhCe3fMvdwMWs6jxA4jVncvfk35JtoBF9vPRHnystrPumo8yZXc X-Received: by 10.236.86.67 with SMTP id v43mr3168075yhe.41.1398439040675; Fri, 25 Apr 2014 08:17:20 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.26.119 with SMTP id 110ls1590415qgu.20.gmail; Fri, 25 Apr 2014 08:17:20 -0700 (PDT) X-Received: by 10.58.74.38 with SMTP id q6mr7020189vev.7.1398439040459; Fri, 25 Apr 2014 08:17:20 -0700 (PDT) Received: from mail-ve0-f173.google.com (mail-ve0-f173.google.com [209.85.128.173]) by mx.google.com with ESMTPS id x6si1773588vcl.12.2014.04.25.08.17.20 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 25 Apr 2014 08:17:20 -0700 (PDT) Received-SPF: none (google.com: patch+caf_=patchwork-forward=linaro.org@linaro.org does not designate permitted sender hosts) client-ip=209.85.128.173; Received: by mail-ve0-f173.google.com with SMTP id oy12so4938056veb.32 for ; Fri, 25 Apr 2014 08:17:20 -0700 (PDT) X-Received: by 10.221.55.133 with SMTP id vy5mr7169210vcb.17.1398439040391; Fri, 25 Apr 2014 08:17:20 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.220.221.72 with SMTP id ib8csp105799vcb; Fri, 25 Apr 2014 08:17:20 -0700 (PDT) X-Received: by 10.58.202.133 with SMTP id ki5mr6996393vec.19.1398439039951; Fri, 25 Apr 2014 08:17:19 -0700 (PDT) Received: from lists.xen.org (lists.xen.org. [50.57.142.19]) by mx.google.com with ESMTPS id w10si1764768vei.124.2014.04.25.08.17.19 for (version=TLSv1 cipher=RC4-SHA bits=128/128); Fri, 25 Apr 2014 08:17:19 -0700 (PDT) Received-SPF: none (google.com: xen-devel-bounces@lists.xen.org does not designate permitted sender hosts) client-ip=50.57.142.19; Received: from localhost ([127.0.0.1] helo=lists.xen.org) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1WdhqY-0006Th-R9; Fri, 25 Apr 2014 15:15:26 +0000 Received: from mail6.bemta3.messagelabs.com ([195.245.230.39]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1WdhqY-0006TP-13 for xen-devel@lists.xen.org; Fri, 25 Apr 2014 15:15:26 +0000 Received: from [85.158.137.68:48230] by server-11.bemta-3.messagelabs.com id 6B/DB-19438-D0C7A535; Fri, 25 Apr 2014 15:15:25 +0000 X-Env-Sender: Ian.Campbell@citrix.com X-Msg-Ref: server-7.tower-31.messagelabs.com!1398438922!139038!1 X-Originating-IP: [66.165.176.89] X-SpamReason: No, hits=0.0 required=7.0 tests=sa_preprocessor: VHJ1c3RlZCBJUDogNjYuMTY1LjE3Ni44OSA9PiAyMDMwMDc=\n X-StarScan-Received: X-StarScan-Version: 6.11.3; banners=-,-,- X-VirusChecked: Checked Received: (qmail 17419 invoked from network); 25 Apr 2014 15:15:24 -0000 Received: from smtp.citrix.com (HELO SMTP.CITRIX.COM) (66.165.176.89) by server-7.tower-31.messagelabs.com with RC4-SHA encrypted SMTP; 25 Apr 2014 15:15:24 -0000 X-IronPort-AV: E=Sophos;i="4.97,927,1389744000"; d="scan'208";a="124613150" Received: from accessns.citrite.net (HELO FTLPEX01CL03.citrite.net) ([10.9.154.239]) by FTLPIPO01.CITRIX.COM with ESMTP; 25 Apr 2014 15:15:24 +0000 Received: from ukmail1.uk.xensource.com (10.80.16.128) by smtprelay.citrix.com (10.13.107.80) with Microsoft SMTP Server id 14.3.123.3; Fri, 25 Apr 2014 11:15:22 -0400 Received: from kazak.uk.xensource.com ([10.80.2.80] helo=zakaz.uk.xensource.com) by ukmail1.uk.xensource.com with smtp (Exim 4.69) (envelope-from ) id 1WdhqS-0004ZV-SV; Fri, 25 Apr 2014 16:15:21 +0100 Received: by zakaz.uk.xensource.com (sSMTP sendmail emulation); Fri, 25 Apr 2014 16:15:20 +0100 From: Ian Campbell To: Date: Fri, 25 Apr 2014 16:15:20 +0100 Message-ID: <1398438920-9515-1-git-send-email-ian.campbell@citrix.com> X-Mailer: git-send-email 1.9.0 MIME-Version: 1.0 X-DLP: MIA2 Cc: Ian Campbell , xen-devel@lists.xen.org Subject: [Xen-devel] [OSSTEST] cri-common: Only use git proxy for git, http and https URLs X-BeenThere: xen-devel@lists.xen.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Post: , List-Help: , List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: ian.campbell@citrix.com X-Original-Authentication-Results: mx.google.com; spf=neutral (google.com: patch+caf_=patchwork-forward=linaro.org@linaro.org does not designate permitted sender hosts) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org X-Google-Group-Id: 836684582541 List-Archive: For testing I had ap-fetch-version-old returning a file:// URL to a local repo. Signed-off-by: Ian Campbell Acked-by: Ian Jackson --- cri-common | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/cri-common b/cri-common index f472927..d82312c 100644 --- a/cri-common +++ b/cri-common @@ -26,7 +26,12 @@ repo_tree_rev_fetch_git () { local remoteurl=$2 local remotetag=$3 local localtag=$4 - local realurl="`getconfig GitCacheProxy`$remoteurl" + case $remoteurl in + git://*|http://*|https://*) + local realurl="`getconfig GitCacheProxy`$remoteurl" ;; + *) + local realurl="$remoteurl" ;; + esac if ! test -d $repos/$treename; then git clone --bare $realurl $repos/$treename >&2 fi