From mboxrd@z Thu Jan 1 00:00:00 1970 From: Teemu Likonen Subject: Re: git remote update -> rejected Date: Tue, 22 Apr 2008 17:04:40 +0300 Message-ID: <20080422140440.GC3098@mithlond.arda.local> References: <1208857733.4695.37.camel@marge.simson.net> <20080422103458.GA14751@sigio.intra.peff.net> <1208861703.18689.2.camel@marge.simson.net> <20080422111113.GB11238@sigill.intra.peff.net> <20080422124118.GA3098@mithlond.arda.local> <20080422133926.GB3098@mithlond.arda.local> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: Jeff King , Mike Galbraith , Junio C Hamano , git To: Johannes Schindelin X-From: git-owner@vger.kernel.org Tue Apr 22 16:08:09 2008 connect(): Connection refused Return-path: Envelope-to: gcvg-git-2@gmane.org Received: from vger.kernel.org ([209.132.176.167]) by lo.gmane.org with esmtp (Exim 4.50) id 1JoJ9k-0004EC-B3 for gcvg-git-2@gmane.org; Tue, 22 Apr 2008 16:07:36 +0200 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1758247AbYDVOGs (ORCPT ); Tue, 22 Apr 2008 10:06:48 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1758106AbYDVOGs (ORCPT ); Tue, 22 Apr 2008 10:06:48 -0400 Received: from pne-smtpout4-sn1.fre.skanova.net ([81.228.11.168]:55186 "EHLO pne-smtpout4-sn1.fre.skanova.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1758046AbYDVOGr (ORCPT ); Tue, 22 Apr 2008 10:06:47 -0400 Received: from mithlond.arda.local (80.220.180.181) by pne-smtpout4-sn1.fre.skanova.net (7.3.129) id 47A7970A0047AF17; Tue, 22 Apr 2008 16:04:42 +0200 Received: from dtw by mithlond.arda.local with local (Exim 4.63) (envelope-from ) id 1JoJ6u-0002F2-TR; Tue, 22 Apr 2008 17:04:40 +0300 Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.17+20080114 (2008-01-14) Sender: git-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: git@vger.kernel.org Archived-At: Johannes Schindelin wrote (2008-04-22 14:49 +0100): > On Tue, 22 Apr 2008, Teemu Likonen wrote: > > > Hmm, to me it looks like --mirror is for mirroring remote repository > > and hence the "+" makes sense in here too. It's like "I want to make > > my repository a copy of that remote repository" hence the name > > 'mirror'. It'll possibly overwrite local branches but in my way of > > thinking mirroring implies that possibility. The 'git remote' manual > > says that --mirror "only makes sense in bare repositories", so the > > manual seems to guide towards not having local working directory nor > > changes. > > Okay, how about this: take Peff's patch, but add a warning if --mirror > is used on a non-bare repository? Sounds good to me. Indeed, giving a warning is _very_ good idea as --mirror is potentially, even likely, destructive with local changes and working directory.