From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on dcvr.yhbt.net X-Spam-Level: X-Spam-ASN: AS31976 209.132.180.0/23 X-Spam-Status: No, score=-3.7 required=3.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, RCVD_IN_DNSWL_HI,SPF_HELO_NONE,SPF_NONE shortcircuit=no autolearn=ham autolearn_force=no version=3.4.2 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by dcvr.yhbt.net (Postfix) with ESMTP id 212451F462 for ; Sat, 27 Jul 2019 21:43:13 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726307AbfG0VnM (ORCPT ); Sat, 27 Jul 2019 17:43:12 -0400 Received: from lovelace.chead.ca ([162.223.226.168]:43572 "EHLO lovelace.chead.ca" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725263AbfG0VnL (ORCPT ); Sat, 27 Jul 2019 17:43:11 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=chead.ca; s=lovelace20151122; h=Message-ID:From:CC:To:Subject: Content-Transfer-Encoding:Content-Type:MIME-Version:References:In-Reply-To: Date:Sender:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help: List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=Lox1LRdV1bb9xw3kE0F1Zcj1Z7QCMrCiPPNQAswWCRo=; b=ZMKBI/f3mKPcgMhycROCOa2Hah npXugdbzaJcrZhiHyTqdLSQYs3/PTWJQ44fB4Snl5jSh307KopKPmjbVwVdwB3S/15Za20LZ8Wk0J EKgJud1a83vUTG9TfMJU9bFkUnEM+IKsEz+LxETwX9l0Gsl6PwQrom7viH+g6YsHacaI=; Received: from [199.119.235.236] (helo=[10.186.191.77]) by lovelace.chead.ca with esmtpsa (TLSv1.2:ECDHE-RSA-AES128-GCM-SHA256:128) (Exim 4.92) (envelope-from ) id 1hrUT7-0004J4-Je; Sat, 27 Jul 2019 14:43:09 -0700 Date: Sat, 27 Jul 2019 14:43:06 -0700 User-Agent: K-9 Mail for Android In-Reply-To: References: <20190727095440.1aac3b3c@amdahl.home.chead.ca> <0DC4FE1B-90A9-414B-AFAC-E328608C4F98@chead.ca> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Autocrypt: addr=bugs@chead.ca; keydata= mQINBFE0V4gBEAC8VQsy2PMXoFb/3nr8YBT6Lquss60ZbGebdY4XZ12fCslhcPaOxOdX7D+gYZaq 62qGNFZ3OlqPCRwhVWZJ1zvnNgResv2bJYBILAORTbWoNOIEdUtn+/0Ab5xi5UmwCa/rc92QLqXT 5MFIHYTLuQeXSy9WLXMO5M82uCg9rOmgTdOGru10WZ38QWqEz05bzNFN9l9VNQUKwKYrAF2Kqo66 SbMXQ9pGwHsJVtwhthdkcVmfQui6rm6pjT5DzIKsrQ18H33ckThW1za5N0lUAEDQhkdMzyPVnfKa C30p9QG36xTI/HJRpEglvGsE5HXfwi9nCdtfyO3ETD0w8g96PI5H3C+xcwnFTw7g3SJ2IMrmVswS IsV2h07xnZGItXfRZ5hEzIuPuEpGv+gLa3iDnL/DfYRCA9ihr44HAiSq9cS8FGJBDy6DeSOrQXyg vjyLnwptg1o6H7V2Ef9F3uLsfQYe9SX5JXfnAfAOhh7jhPE1XlZjrfVM4/fvyx5VhHLbgho3b2cF pCYcIZjGlOBoVn/IasrhJ5jBCRbMD67q6UNOu6fLJPkaxlGk6n5DUJpXbaROiogFuE0PYgreZgUz YTybn1LOXPvBZV+JCVSlU60tBDGDL7WaRhG9ff+D6lmLgrIx+6c6+QLIQ02ux/FP/60A7kiYV3NK BLtIVYSiCJNjEwARAQABtCFDaHJpc3RvcGhlciBIZWFkIDxjaGVhZE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qd6CcakhVVJiHl37oTodQn B45uur0Uuar6UvnCdq4JK32tUxbDfflnzCCTpHxH5upxWBpI3xiwYFcIqNPkBUvXF4dHfJeZ7S0v XUwk7vGasuUsD+IytBrpkZx1mhB63Lr44ko= Subject: Re: Push force-with-lease with multi-URL remote To: Junio C Hamano CC: git@vger.kernel.org From: Christopher Head Message-ID: Sender: git-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: git@vger.kernel.org On July 27, 2019 1:57:18 PM PDT, Junio C Hamano wrote= : >What I would call "logically the same" is the set of repositories >that are synchronized at the server side, which may or may not have >multiple URLs to reach it, but behave as if it is just a single one >without your doing anything special=2E Your wanting to actively make >them in sync by the above definition makes them logically different >set of repositories=2E But the phrasing does not matter much=2E OK, I would probably have just used one push URL in this scenario=2E >One repository at a hosting service (which may iternally be >replicated, but that is not even observable from outside) may be >reached over https:// or ssh://, and the result of pushing to either >one of the URLs would be observable by immediately fetching back >from either one=2E Having both URLs and trying to use either one that >works may help under flaky proxy situation, for example=2E That makes sense, I guess, if the unusable URLs can be expected to fail fa= st=2E >In the reverse direction, I think "git fetch" supports the notion of > of repositories, so that fetch from multiple remotes can be >initiated with a single command, but I am not sure if we added the >same concept to the pushing side=2E I personally want to have >finer control, so when I push my work to multiple repositories, each >of them are treated as totally different push targets, and a script >controls multiple "git push" processes to each of them in parallel, >with retries and all=2E I think having multiple pushURL and pushing >to them is sort-of OK, but what is broken in your configuration is >that you have a single remote-tracking branch hierarchy---if you get >rid of it, so that refs/remotes/myremote/ does not exist and does >not get updated, I think things would work fine=2E Yes, I agree, the presence of only a single remote tracking ref is what ma= kes the use of a single remote with multiple URLs suboptimal here=E2=80=94i= t was just a better than the other options=2E I tend to have pretty reliabl= e Internet connectivity, and I don=E2=80=99t particularly want to go writin= g custom scripts=2E I just want to use the normal push and fetch commands= =2E Using multiple URLs on one remote is OK, though the single remote track= ing ref is annoying=2E Using separate remotes works, but is more annoying d= ue to having to remember to push to all of them=2E If I understand what rem= ote groups are (separate remotes but you can act on all of them with one co= mmand?) then they should be perfect=2E However it does not look like they w= ork for pushing=2E Would it make sense to add? --=20 Christopher Head