From nobody Tue May 25 09:59:46 2021 X-Original-To: git@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id BF8959F4A58 for ; Tue, 25 May 2021 09:59:47 +0000 (UTC) (envelope-from uqs@freebsd.org) Received: from smtp.freebsd.org (smtp.freebsd.org [IPv6:2610:1c1:1:606c::24b:4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "smtp.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Fq8h355mHz4V8h; Tue, 25 May 2021 09:59:47 +0000 (UTC) (envelope-from uqs@freebsd.org) Received: from localhost (acme.spoerlein.net [IPv6:2a05:fc87:1:5::15]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) (Authenticated sender: uqs/mail) by smtp.freebsd.org (Postfix) with ESMTPSA id 402E620EDD; Tue, 25 May 2021 09:59:47 +0000 (UTC) (envelope-from uqs@freebsd.org) Date: Tue, 25 May 2021 11:59:46 +0200 From: Ulrich =?utf-8?B?U3DDtnJsZWlu?= To: Kurt Jaeger Cc: git@freebsd.org Subject: Re: commit to gitrepo-dev ends up in gitrepo.FreeBSD.org ? Message-ID: References: <202105231312.14NDCcOm011888@gitrepo.freebsd.org> List-Id: Discussion of git use in the FreeBSD project List-Archive: https://lists.freebsd.org/archives/freebsd-git List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-git@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Disposition: inline In-Reply-To: User-Agent: Mutt/2.0.6 (2021-03-06) X-Spam: Yes X-ThisMailContainsUnwantedMimeParts: N On Mon, 2021-05-24 at 21:23:49 +0200, Kurt Jaeger wrote: >Hi! > >> > Ah, I was not aware of that config file. >[...] >> Hmmm, that looks perfectly fine. Pushing to 'freebsd' in this repo >> should've gone to the dev cluster. Are you sure you don't also have a 2nd >> checkout and ran the command from there? > >I do have a 2nd checkout -- one to test the commit (the one >in question) and one to really commit. > >I can not rule out that I made a mistake, but at the time of >the commit I did thorouglhy check the directory I was in and >concluded that this mishap did not happen. > >Thanks for analysing this and pointing me to .git/config, but I >guess there's nothing more to analyse and find the real cause 8-( I would recommend to have a single checkout with multiple remotes, where say "freebsd" is a https read-only link to production and you have push-able remotes using ssh to dev and prod, called "dev" and "prod" so that you cannot accidentally push without specifying a remote. Typing "dev" or "prod" then is an explicit action. Cheers Uli