From mboxrd@z Thu Jan 1 00:00:00 1970 From: Leo Famulari Subject: Re: pre-push signature hook error reporting [was Re: [PATCH v6] gnu: python-sphinx: Update to 1.4.8.] Date: Tue, 17 Jan 2017 14:39:02 -0500 Message-ID: <20170117193902.GB6560@jasmine> References: <20170105161431.9803-1-dannym@scratchpost.org> <878tqpjw93.fsf@kirby.i-did-not-set--mail-host-address--so-tickle-me> <8760lj5eb6.fsf@kirby.i-did-not-set--mail-host-address--so-tickle-me> <20170113152400.GA24322@jasmine> <20170117031414.GB23513@jasmine> <587E306E.7010407@crazy-compilers.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:44667) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cTZb2-0000od-VE for guix-devel@gnu.org; Tue, 17 Jan 2017 14:39:09 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cTZay-00080Z-3B for guix-devel@gnu.org; Tue, 17 Jan 2017 14:39:09 -0500 Received: from out1-smtp.messagingengine.com ([66.111.4.25]:53042) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1cTZax-00080Q-Uo for guix-devel@gnu.org; Tue, 17 Jan 2017 14:39:04 -0500 Content-Disposition: inline In-Reply-To: <587E306E.7010407@crazy-compilers.com> List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: "Guix-devel" To: Hartmut Goebel Cc: guix-devel On Tue, Jan 17, 2017 at 03:55:42PM +0100, Hartmut Goebel wrote: > Am 17.01.2017 um 04:14 schrieb Leo Famulari: > > with `git verify-commit $(git rev-list HEAD)`. This is what the pre-push > > As far as I understand the example hook, it would be possible to do > something like > > git verify-commit $(git rev-list $remote_sha..$local_sha) > > this would only verify the commits which are going to be pushed. I'm sorry that I was unclear. If you read the hook, you'll see that it does what you suggest. I chose to check the entire history as a benchmark.