From: Brendan Cully Subject: Re: [PATCH] refetch qemu if QEMU_TAG changed Date: Fri, 29 Oct 2010 09:12:33 -0700 Message-ID: <20101029161233.GA13390@kremvax.cs.ubc.ca> References: <1288336835.8069.18.camel@localhost.localdomain> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Content-Disposition: inline In-Reply-To: <1288336835.8069.18.camel@localhost.localdomain> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Ian Campbell Cc: Juergen Gross , "xen-devel@lists.xensource.com" List-Id: xen-devel@lists.xenproject.org On Friday, 29 October 2010 at 08:20, Ian Campbell wrote: > On Fri, 2010-10-29 at 07:57 +0100, Juergen Gross wrote: > > Check for a changed QEMU_TAG. If it has changed since last build, delete old > > qemu sources and refetch with new QEMU_TAG. > > Deleteing and recloning seems like an awfully big hammer. Can the same > not be achieved with a "git fetch origin" and a "git reset "? In any case, it should probably only do that if the currently checked-out version matches the old value of QEMU_TAG and the directory has no source modifications, indicating the builder is just using the default build. Otherwise it should just warn that QEMU_TAG has changed and the ioemu directory may have become out of date. With the proposed patch it's very easy to destroy a developer's code.