From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on dcvr.yhbt.net X-Spam-Level: X-Spam-ASN: AS3215 2.6.0.0/16 X-Spam-Status: No, score=-3.2 required=3.0 tests=AWL,BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE,SPF_PASS shortcircuit=no autolearn=ham autolearn_force=no version=3.4.2 Received: from mail-qt1-x82a.google.com (mail-qt1-x82a.google.com [IPv6:2607:f8b0:4864:20::82a]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by dcvr.yhbt.net (Postfix) with ESMTPS id 2B3A320248 for ; Fri, 5 Apr 2019 17:43:34 +0000 (UTC) Received: by mail-qt1-x82a.google.com with SMTP id z16so8381062qtn.4 for ; Fri, 05 Apr 2019 10:43:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=AbJWjRpWk57LPnhRq/fWMvm94I2HRofRB5PEyp/5nHA=; b=Zw/lsNaiRTO3xCshW40U9KxDeIppjob47K7DsmvOhBuFG5FQHrP4Y+dsvP/H7m3TqR NElKEEgTc3HhBDHRX0UIymKAsUCKTmGa25E8sao3muicKOsF/5gfjnjzN2z5Elk7xLRU RJEnkVUm+liH/fy9jh5h/RYdA7tFh2XsfVGHc= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=AbJWjRpWk57LPnhRq/fWMvm94I2HRofRB5PEyp/5nHA=; b=QML9ubHFaLIQvljmIhdlIo5qmhUwp7EqURVep9Mh9sgiqSn2ywUxWiALRT5J5FL3xg rOloqO/C1ziE+RTL9uNmQDC1AHeLYEvFh5FNlRj7t4HxnxlOA0VrrW4YYeg632npvGT2 Ba8D3ZMxRgtV5e7pSF/D7vKVux1SfTErx0EeMklZ+oUuREl3u5StOYWpsJVyK6kEMWin lzgN4g81vPLg7UEZTprQYRK8B2WAuG0LCjPx2h3JGKEJEGvwDXr50gBHSsva2+Tctz9m 8/cY+Raho1ZRLT9dUdD3+rAucjfIk7NAs0MYe20LX7ee+Ciic4NBVD05/9u5tF6nQ7jc QscA== X-Gm-Message-State: APjAAAWrqJNbCtY/tvzacxRwBb2jiDpcNVn4h95kpRS0Gu/F6DcG2qjN 7ky/Pwf60bR5Zpj+DF6zlaUdbw== X-Google-Smtp-Source: APXvYqx/VKeQgKIRyd5LGBnMMXALKFq/VI8DNI/iBjAjDrffqleawubq8AvWyKPBFXMnPnZxVIcwlw== X-Received: by 2002:ac8:1967:: with SMTP id g36mr12333266qtk.323.1554486212839; Fri, 05 Apr 2019 10:43:32 -0700 (PDT) Received: from chatter.qube.local ([176.113.74.187]) by smtp.gmail.com with ESMTPSA id k41sm18846371qtc.89.2019.04.05.10.43.31 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 05 Apr 2019 10:43:31 -0700 (PDT) Date: Fri, 5 Apr 2019 13:43:29 -0400 From: Konstantin Ryabitsev To: Eric Wong Cc: meta@public-inbox.org Subject: Re: RFE: default hooks for git repositories Message-ID: <20190405174329.GA21472@chatter.qube.local> References: <20190306170302.GA21727@chatter.qube.local> <20190307024241.lhlf65uqsbjywfv3@dcvr> <20190308230116.7lnfrcns4lscxrir@whir> <20190318231152.3wetgoicjw7vyf7w@dcvr> <20190401154100.GA3701@chatter.qube.local> <20190401180403.o4zgowgyh3qq23iz@dcvr> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Disposition: inline In-Reply-To: <20190401180403.o4zgowgyh3qq23iz@dcvr> User-Agent: Mutt/1.11.3 (2019-02-01) List-Id: On Mon, Apr 01, 2019 at 06:04:03PM +0000, Eric Wong wrote: >> Sorry, Eric, I'm close to declaring email bankruptcy. :) I am okay >> with any >> solution that lets us add hooks. To explain why we need hooks in >> public-inbox repos, it's mostly for the ease of mirroring -- I want a >> post-update hook to update the grokmirror [1] manifest so that our mirroring >> script knows when there are updates and also when there are new archives or >> repository epochs added. >> >> So, I defer to you entirely when it comes to how to do it. :) > >Yes, putting the hook in the init.templateDir should get you >what you want. It would work the same for newly-created code >repositories, too. So, I just realized that, at least when mail is delivered via public-inbox-mda, none of the hooks are ever triggered. I've tried with post-update, post-receive, post-commit, pre-commit, etc. Am I doing something wrong, or is this because the operation is being done on a low enough level that the hooks aren't triggered as they would with a regular git operation? -K