From mboxrd@z Thu Jan 1 00:00:00 1970 From: Daniel De Graaf Subject: Re: [PATCH] ioemu: Clone ioemu with --depth=1 Date: Tue, 01 Nov 2011 17:32:15 -0400 Message-ID: <4EB0655F.5080107@tycho.nsa.gov> References: <20111101173312.GH20553@spongy.cam.xci-test.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <20111101173312.GH20553@spongy.cam.xci-test.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Jean Guyader Cc: "xen-devel@lists.xensource.com" , Ian Jackson , Stefano Stabellini List-Id: xen-devel@lists.xenproject.org On 11/01/2011 01:33 PM, Jean Guyader wrote: > > Signed-off-by: Jean Guyader > > diff --git a/tools/Makefile b/tools/Makefile > index 9389e1f..6c1dfe0 100644 > --- a/tools/Makefile > +++ b/tools/Makefile > @@ -92,7 +92,7 @@ ioemu-dir-find: > if [ ! -d ioemu-remote ]; then \ > rm -rf ioemu-remote ioemu-remote.tmp; \ > mkdir ioemu-remote.tmp; rmdir ioemu-remote.tmp; \ > - $(GIT) clone $(CONFIG_QEMU) ioemu-remote.tmp; \ > + $(GIT) clone --depth=1 $(CONFIG_QEMU) ioemu-remote.tmp; \ > if [ "$(QEMU_TAG)" ]; then \ > cd ioemu-remote.tmp; \ > $(GIT) branch -D dummy >/dev/null 2>&1 ||:; \ This will break if QEMU_TAG is pointing to any commit that is more than one commit away from a branch or tag in the source repository. In order to allow using older xen repositories, this requires that every update to QEMU_TAG in xen-*.hg also add a tag or branch to the git repository. It would be nice if you could use git clone --branch $(QEMU_TAG) but this is not supported when $(QEMU_TAG) is a commit ID. -- Daniel De Graaf National Security Agency