From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from simark.ca by simark.ca with LMTP id uOT2AjTjnGGkKAAAWB0awg (envelope-from ) for ; Tue, 23 Nov 2021 07:48:52 -0500 Received: by simark.ca (Postfix, from userid 112) id F031A1F0CE; Tue, 23 Nov 2021 07:48:51 -0500 (EST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on simark.ca X-Spam-Level: X-Spam-Status: No, score=-3.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,MAILING_LIST_MULTI,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.2 Received: from sourceware.org (server2.sourceware.org [8.43.85.97]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by simark.ca (Postfix) with ESMTPS id 7A77D1EDEE for ; Tue, 23 Nov 2021 07:48:51 -0500 (EST) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id BD66C3858029 for ; Tue, 23 Nov 2021 12:48:50 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org BD66C3858029 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1637671730; bh=dta7yKIFs8l1jia/Ytha8Cvsjvpj+69bjhFk6vsLtWE=; h=Date:To:Subject:References:In-Reply-To:List-Id:List-Unsubscribe: List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To:Cc: From; b=sphakFLeXA+/q0ijY8fNAsUgYlN+uAkhVLARdECSood49nJNIYHvWVFpXxOgjjq03 ucO2sv+jxJaSRQM1NAu9bAj3DygVTWHaW4Aai+RHWHHdhpqMM09KndKG9NnbiDo1VC Y/3J/gmgQbMaPWSM+msY8JjKqT8MPyAi6tKSJ8Wk= Received: from lndn.lancelotsix.com (lndn.lancelotsix.com [51.195.220.111]) by sourceware.org (Postfix) with ESMTPS id 028A33858D28 for ; Tue, 23 Nov 2021 12:48:26 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 028A33858D28 Received: from ubuntu.lan (unknown [IPv6:2a02:390:9086::635]) by lndn.lancelotsix.com (Postfix) with ESMTPSA id 17B3C8198D; Tue, 23 Nov 2021 12:48:25 +0000 (UTC) Date: Tue, 23 Nov 2021 12:48:19 +0000 To: Jan Vrany Subject: Re: feature branch for creating MI commands with python (was: How to create new mi commands via python / get current interpreter in python) Message-ID: <20211123124819.guu3d6hwq6n4qpko@ubuntu.lan> References: <60c53fa8bf160533a2eddf1da280eb50c7461a6a.camel@fit.cvut.cz> <253b903c-b5e3-86bd-2681-c904fb2c5d53@gnu.org> <4a86abc464db6ce661a0ae6d443da3b0b4bd52b2.camel@fit.cvut.cz> <8001469a-1bed-febb-3dbc-3c72c4293033@gnu.org> <09bc45997539f9efe19b69b763123745133cda6e.camel@fit.cvut.cz> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <09bc45997539f9efe19b69b763123745133cda6e.camel@fit.cvut.cz> X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.5.11 (lndn.lancelotsix.com [0.0.0.0]); Tue, 23 Nov 2021 12:48:25 +0000 (UTC) X-BeenThere: gdb@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gdb mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , From: Lancelot SIX via Gdb Reply-To: Lancelot SIX Cc: gdb@sourceware.org, Simon Sobisch , Andrew Burgess Errors-To: gdb-bounces+public-inbox=simark.ca@sourceware.org Sender: "Gdb" On Tue, Nov 23, 2021 at 12:29:41PM +0000, Jan Vrany wrote: > Hi Simon, Andrew > > > > > > > Done. Rebased on a recent master and pushed into branch: > > > "users/jv/patches/feature-python-mi": > > > > > > https://sourceware.org/git/?p=binutils-gdb.git;a=shortlog;h=refs/heads/users/jv/patches/feature-python-mi > > > > > I have rebased this branch on to of Andrew's patches and > wanted to update the feature branch on sourceware.org but > it failed: > > remote: error: denying non-fast-forward > refs/heads/users/jv/patches/feature-python-mi (you should pull first) > > What's the correct way of updating rebased / edited feature branch? > Hi, When I have to do this and cannot force push to a feature branch, I first delete the remote branch, and then push to re-create it. This could look like something like this (assuming you push the remove called origin): git push origin :users/jv/patches/feature-python-mi git push origin the_name_of_the_local_branch:users/jv/patches/feature-python-mi Hopefully, this does the trick. Best, Lancelot.