From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 45356 invoked by alias); 22 Aug 2017 15:31:22 -0000 Mailing-List: contact binutils-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: binutils-owner@sourceware.org Received: (qmail 43987 invoked by uid 89); 22 Aug 2017 15:31:21 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.9 required=5.0 tests=BAYES_00,RP_MATCHES_RCVD,SPF_PASS autolearn=ham version=3.3.2 spammy=bare X-Spam-User: qpsmtpd, 2 recipients X-HELO: mx1.suse.de Received: from mx2.suse.de (HELO mx1.suse.de) (195.135.220.15) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Tue, 22 Aug 2017 15:31:20 +0000 Received: from relay2.suse.de (charybdis-ext.suse.de [195.135.220.254]) by mx1.suse.de (Postfix) with ESMTP id 3123DABB4; Tue, 22 Aug 2017 15:31:18 +0000 (UTC) From: Andreas Schwab To: Pedro Alves Cc: "binutils\@sourceware.org" , "gdb\@sourceware.org" , Joel Brobecker Subject: Re: can't push to binutils-gdb, git-hooks rejecting commits References: X-Yow: Yow! Am I cleansed yet?! Date: Tue, 22 Aug 2017 15:31:00 -0000 In-Reply-To: (Pedro Alves's message of "Tue, 22 Aug 2017 15:56:06 +0100") Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-SW-Source: 2017-08/txt/msg00228.txt.bz2 On Aug 22 2017, Pedro Alves wrote: > Repeating that big "git rev-list" command below locally shows: > > fatal: bad revision '^refs/heads/users/hjl/pr17709' You need to translate all refs to your remote-tracking branches inside origin (eg. refs/remotes/origin/users/hjl/pr17709), or run that command inside a bare mirror. Doing that results in no error, execpt that the first rev does not exist for me, but that is probably the rev you are about to push. > That branch doesn't appear to exist anymore. Sounds like the hooks > need to run "git remote prune origin" on their clone? Does that make > sense? The hook is running directly inside the bare repository, there is no remote. Andreas. -- Andreas Schwab, SUSE Labs, schwab@suse.de GPG Key fingerprint = 0196 BAD8 1CE9 1970 F4BE 1748 E4D4 88E3 0EEA B9D7 "And now for something completely different."