From mboxrd@z Thu Jan 1 00:00:00 1970 From: Andreas Krey Subject: Re: git push default behaviour? Date: Thu, 8 Mar 2012 20:03:10 +0100 Message-ID: <20120308190310.GA13486@inner.h.iocl.org> References: <87k42vs8pi.fsf@thomas.inf.ethz.ch> <1331202483.21444.11.camel@beez.lab.cmartin.tk> <1331203321.21444.13.camel@beez.lab.cmartin.tk> <7vlinbdkb0.fsf@alter.siamese.dyndns.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: Junio C Hamano , Jeremy Morton , Carlos =?iso-8859-1?Q?Mart=EDn?= Nieto , Thomas Rast , git@vger.kernel.org To: Matthieu Moy X-From: git-owner@vger.kernel.org Thu Mar 08 20:35:39 2012 Return-path: Envelope-to: gcvg-git-2@plane.gmane.org Received: from vger.kernel.org ([209.132.180.67]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1S5j7a-0005YY-M3 for gcvg-git-2@plane.gmane.org; Thu, 08 Mar 2012 20:35:31 +0100 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1758470Ab2CHTfU (ORCPT ); Thu, 8 Mar 2012 14:35:20 -0500 Received: from continuum.iocl.org ([217.140.74.2]:40210 "EHLO continuum.iocl.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1758455Ab2CHTfS (ORCPT ); Thu, 8 Mar 2012 14:35:18 -0500 X-Greylist: delayed 1885 seconds by postgrey-1.27 at vger.kernel.org; Thu, 08 Mar 2012 14:35:17 EST Received: (from krey@localhost) by continuum.iocl.org (8.11.3/8.9.3) id q28J3Ab13715; Thu, 8 Mar 2012 20:03:10 +0100 Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4.2.1i X-message-flag: What did you expect to see here? Sender: git-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: git@vger.kernel.org Archived-At: On Thu, 08 Mar 2012 19:35:51 +0000, Matthieu Moy wrote: ... > If someone else did a push between my first push and the "push --force", > then the other user's push is discarded. A push --semiforce would help here: Should check whether the remote branch is at the same commit as origin/master locally, and only then set to new local master. (Would probably require protocol change to actuall be atomic.) Andreas -- "Totally trivial. Famous last words." From: Linus Torvalds Date: Fri, 22 Jan 2010 07:29:21 -0800