From mboxrd@z Thu Jan 1 00:00:00 1970 From: Richard Purdie Subject: Re: Overriding ~/.gitconfig using GIT_CONFIG Date: Tue, 30 Aug 2011 19:39:05 +0100 Message-ID: <1314729545.5939.391.camel@rex> References: <1313163498.14274.505.camel@rex> <7vr54qmodf.fsf@alter.siamese.dyndns.org> <7vmxfemnc4.fsf@alter.siamese.dyndns.org> <1313181853.14274.535.camel@rex> <20110828130555.GA56765@gmail.com> <1314620166.5939.282.camel@rex> <20110830031022.GA64106@gmail.com> <1314706381.5939.348.camel@rex> <20110830155649.GA15790@sigill.intra.peff.net> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit Cc: David Aguilar , Junio C Hamano , Daniel Barkalow , Nguy?? n =?UTF-8?Q?Th=C3=A1i_Ng=E1=BB=8Dc?= Duy , GIT Mailing-list To: Jeff King X-From: git-owner@vger.kernel.org Tue Aug 30 21:14:51 2011 Return-path: Envelope-to: gcvg-git-2@lo.gmane.org Received: from vger.kernel.org ([209.132.180.67]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1QyTlq-0001xP-C2 for gcvg-git-2@lo.gmane.org; Tue, 30 Aug 2011 21:14:50 +0200 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756170Ab1H3TOe (ORCPT ); Tue, 30 Aug 2011 15:14:34 -0400 Received: from 93-97-173-237.zone5.bethere.co.uk ([93.97.173.237]:57309 "EHLO tim.rpsys.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756145Ab1H3TOc (ORCPT ); Tue, 30 Aug 2011 15:14:32 -0400 X-Greylist: delayed 2085 seconds by postgrey-1.27 at vger.kernel.org; Tue, 30 Aug 2011 15:14:32 EDT Received: from localhost (localhost [127.0.0.1]) by tim.rpsys.net (8.13.6/8.13.8) with ESMTP id p7UIdRuV020906; Tue, 30 Aug 2011 19:39:27 +0100 Received: from tim.rpsys.net ([127.0.0.1]) by localhost (tim.rpsys.net [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 19937-09; Tue, 30 Aug 2011 19:39:23 +0100 (BST) Received: from [192.168.3.10] ([192.168.3.10]) (authenticated bits=0) by tim.rpsys.net (8.13.6/8.13.8) with ESMTP id p7UIdGTh020900 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Tue, 30 Aug 2011 19:39:17 +0100 In-Reply-To: <20110830155649.GA15790@sigill.intra.peff.net> X-Mailer: Evolution 2.32.2 X-Virus-Scanned: amavisd-new at rpsys.net Sender: git-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: git@vger.kernel.org Archived-At: On Tue, 2011-08-30 at 11:56 -0400, Jeff King wrote: > On Tue, Aug 30, 2011 at 01:13:01PM +0100, Richard Purdie wrote: > > > We've gone through several iterations of this but as things stand now, > > to initially clone things we're doing: > > > > git clone --bare --mirror > > > > but if we already have some existing clone we'd update with: > > > > git remote prune origin > > git remote rm origin > > git remote add --mirror origin > > git fetch --all -t > > > > [...] > > > > So if a user has an origin remote in their .gitconfig, can we ignore it? > > Wouldn't: > > git fetch --prune refs/heads/*:refs/remotes/origin/* > > do what you want, and not look at config at all? Since this is a bare/mirror clone, wouldn't that need to be: git fetch --prune refs/heads/*:refs/heads/* ? That also wouldn't fetch tags? Cheers, Richard