From: Andrew Cooper Subject: Re: [OSSTEST PATCH] ts-xen-build-prep: Use .gitconfig so _everything_ uses git cache Date: Wed, 3 Aug 2016 16:50:59 +0100 Message-ID: <3ead276d-38a4-e952-ce10-165caa041cea@citrix.com> References: <1470239242-5302-1-git-send-email-ian.jackson@eu.citrix.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============4545774212586621169==" Return-path: Received: from mail6.bemta3.messagelabs.com ([195.245.230.39]) by lists.xenproject.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bUyRk-0003dj-Kc for xen-devel@lists.xenproject.org; Wed, 03 Aug 2016 15:51:04 +0000 In-Reply-To: <1470239242-5302-1-git-send-email-ian.jackson@eu.citrix.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Errors-To: xen-devel-bounces@lists.xen.org Sender: "Xen-devel" To: Ian Jackson , xen-devel@lists.xenproject.org List-Id: xen-devel@lists.xenproject.org --===============4545774212586621169== Content-Type: multipart/alternative; boundary="------------02445EF31850C82FF6475A1B" --------------02445EF31850C82FF6475A1B Content-Type: text/plain; charset="windows-1252" Content-Transfer-Encoding: 7bit On 03/08/16 16:47, Ian Jackson wrote: > In particular, when xen.git clones a subtrees, whose url we didn't > specify in the runvars, we end up using the url from xen.git's > Config.mk. > > Arrange to use the git cache for all git urls, via the insteadOf > feature. > > Note that the git config url insteadOf feature is backwards: one > configures the config variable "url.NEW-URL.insteadOf.OLD-URL". So > the key is the value, and the value is the key. > > Signed-off-by: Ian Jackson FWIW, LGTM. ~Andrew --------------02445EF31850C82FF6475A1B Content-Type: text/html; charset="windows-1252" Content-Transfer-Encoding: 7bit
On 03/08/16 16:47, Ian Jackson wrote:
In particular, when xen.git clones a subtrees, whose url we didn't
specify in the runvars, we end up using the url from xen.git's
Config.mk.

Arrange to use the git cache for all git urls, via the insteadOf
feature.

Note that the git config url insteadOf feature is backwards: one
configures the config variable "url.NEW-URL.insteadOf.OLD-URL".  So
the key is the value, and the value is the key.

Signed-off-by: Ian Jackson <ian.jackson@eu.citrix.com>

FWIW, LGTM.

~Andrew
--------------02445EF31850C82FF6475A1B-- --===============4545774212586621169== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18KWGVuLWRldmVs IG1haWxpbmcgbGlzdApYZW4tZGV2ZWxAbGlzdHMueGVuLm9yZwpodHRwczovL2xpc3RzLnhlbi5v cmcveGVuLWRldmVsCg== --===============4545774212586621169==--