From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751982AbdK2AJI (ORCPT ); Tue, 28 Nov 2017 19:09:08 -0500 Received: from ozlabs.org ([103.22.144.67]:60305 "EHLO ozlabs.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751239AbdK2AJG (ORCPT ); Tue, 28 Nov 2017 19:09:06 -0500 From: Michael Ellerman To: Stephen Rothwell , Greg KH Cc: Linux-Next Mailing List , Linux Kernel Mailing List Subject: Re: linux-next: Signed-off-by missing for commits in the staging tree In-Reply-To: <20171129095916.062d6f7d@canb.auug.org.au> References: <20171128081651.71a2e92a@canb.auug.org.au> <20171128194139.GA2653@kroah.com> <20171129095916.062d6f7d@canb.auug.org.au> Date: Wed, 29 Nov 2017 11:09:04 +1100 Message-ID: <87609uymhr.fsf@concordia.ellerman.id.au> MIME-Version: 1.0 Content-Type: text/plain Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Stephen Rothwell writes: > Hi Greg, > > On Tue, 28 Nov 2017 20:41:39 +0100 Greg KH wrote: >> >> I need to set up a git hook for this :( > > I couldn't find an appropriate hook for fetching or merging other > trees :-( Instead I run the attached script below after each fetch. Isn't the update hook what you want? Called by git-receive-pack: Before each ref is updated, if $GIT_DIR/hooks/update file exists and is executable, it is invoked once per ref, with three parameters: $GIT_DIR/hooks/update refname sha1-old sha1-new cheers