From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751117AbWBZKpa (ORCPT ); Sun, 26 Feb 2006 05:45:30 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1751320AbWBZKpa (ORCPT ); Sun, 26 Feb 2006 05:45:30 -0500 Received: from mail.dvmed.net ([216.237.124.58]:26270 "EHLO mail.dvmed.net") by vger.kernel.org with ESMTP id S1751072AbWBZKp3 (ORCPT ); Sun, 26 Feb 2006 05:45:29 -0500 Message-ID: <440186AE.2@pobox.com> Date: Sun, 26 Feb 2006 05:45:02 -0500 From: Jeff Garzik User-Agent: Mozilla Thunderbird 1.0.7-1.1.fc4 (X11/20050929) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Al Viro CC: Linus Torvalds , Stefan Richter , Chris Wright , stable@kernel.org, Jody McIntyre , linux-kernel@vger.kernel.org, linux-scsi@vger.kernel.org, Junio C Hamano Subject: Re: [stable] [PATCH 1/2] sd: fix memory corruption by sd_read_cache_type References: <20060225021009.GV3883@sorel.sous-sol.org> <4400E34B.1000400@s5r6.in-berlin.de> <20060226001716.GL27946@ftp.linux.org.uk> <44016956.2030609@pobox.com> <20060226090024.GO27946@ftp.linux.org.uk> In-Reply-To: <20060226090024.GO27946@ftp.linux.org.uk> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Score: 0.0 (/) Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Al Viro wrote: > On Sun, Feb 26, 2006 at 03:39:50AM -0500, Jeff Garzik wrote: > >>Any chance we could get 'git fetch --heads' ? >> >>FWIW, I regularly blow away and create new heads, so the above is rather >>long for people who use my repos. A lot of them use rsync because when >>you're tracking a repo with ever-changing branches, 'git pull' doesn't >>really approximate "make local X look like remote X". > > > Speaking of which... Shouldn't git clone bring in .git/HEAD for rsync:// URLs? > As it is, we end up with HEAD pointing to refs/master, which might simply > not be there. For git:// we get .git/HEAD same as in remote repository, > so behaviour for rsync:// probably should be the same... > > Looks like a missing rsync in git-clone, around > rsync://*) > rsync $quiet -av --ignore-existing \ > --exclude info "$repo/objects/" "$GIT_DIR/objects/" && > rsync $quiet -av --ignore-existing \ > --exclude info "$repo/refs/" "$GIT_DIR/refs/" || exit > > Comments? AFAICS 'git clone $rsync_url' pulls down the heads and tags just fine... I just tried it again to be certain. refs/heads and refs/tags is fully populated, and HEAD links to refs/master as it should. Jeff