From mboxrd@z Thu Jan 1 00:00:00 1970 From: Johannes Schindelin Subject: Re: git push (mis ?)behavior Date: Wed, 3 Oct 2007 16:27:49 +0100 (BST) Message-ID: References: <20070927130447.GH10289@artemis.corp> <7v3awzvrpr.fsf@gitster.siamese.dyndns.org> <20071003073554.GA8110@artemis.corp> <83C5420A-528A-43F0-AF8C-699B85B7AD95@wincent.com> <20071003104943.GA3017@diana.vm.bytemark.co.uk> Mime-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Cc: Wincent Colaiuta , Miles Bader , Pierre Habouzit , Junio C Hamano , git@vger.kernel.org To: Karl =?iso-8859-1?Q?Hasselstr=F6m?= X-From: git-owner@vger.kernel.org Wed Oct 03 17:30:08 2007 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 1Id6AZ-00028L-DB for gcvg-git-2@gmane.org; Wed, 03 Oct 2007 17:29:51 +0200 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752735AbXJCP3K (ORCPT ); Wed, 3 Oct 2007 11:29:10 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1752240AbXJCP3J (ORCPT ); Wed, 3 Oct 2007 11:29:09 -0400 Received: from mail.gmx.net ([213.165.64.20]:53391 "HELO mail.gmx.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with SMTP id S1751615AbXJCP3I (ORCPT ); Wed, 3 Oct 2007 11:29:08 -0400 Received: (qmail invoked by alias); 03 Oct 2007 15:29:06 -0000 Received: from unknown (EHLO [138.251.11.74]) [138.251.11.74] by mail.gmx.net (mp049) with SMTP; 03 Oct 2007 17:29:06 +0200 X-Authenticated: #1490710 X-Provags-ID: V01U2FsdGVkX1/5vqwNicf5FkkC9yD8S+fk/2Yvi0AI5vHxBfrcYv +5BYVyxmEWpJQs X-X-Sender: gene099@racer.site In-Reply-To: <20071003104943.GA3017@diana.vm.bytemark.co.uk> X-Y-GMX-Trusted: 0 Sender: git-owner@vger.kernel.org Precedence: bulk X-Mailing-List: git@vger.kernel.org Archived-At: Hi, On Wed, 3 Oct 2007, Karl Hasselstr?m wrote: > 2. "push all branches" is the default, but the user intended to push > only the current branch. She ends up pushing a superset of what > she wanted, which is not easily fixed if she can't be sure that > no one else has pulled from the public repo before she notices > what's happened. But that is not the default. Not at all. The default is to push the refs which the remote and the local side have _in common_. Maybe we should initialise the "remote.origin.push" variable to "completely-bogus-branchname" when you "git init --im-a-newbie"? Ciao, Dscho