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-io1-xd31.google.com (mail-io1-xd31.google.com [IPv6:2607:f8b0:4864:20::d31]) (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 044BF20248 for ; Wed, 6 Mar 2019 17:03:10 +0000 (UTC) Received: by mail-io1-xd31.google.com with SMTP id v10so10823855iop.4 for ; Wed, 06 Mar 2019 09:03:09 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=google; h=date:from:to:subject:message-id:mime-version:content-disposition :user-agent; bh=9XpBeK+dxnDxCR57TKSb1XDzYAvcy9LfRYYksLia1Gg=; b=VQQcEXEzYxr+PJPqajVQIOQM/H1tlRPSKwQipGi1choI7ysG309Id3Zmr872fcqLcL jPhaEu1NVGrg8EM7e/hor3EG6D2NcaVNDzPKJa82Ie5OwIDZw//QskBXNuvIm4VNqSjk 6ptqwwrZIjK0AjYmA/hDlfUlE9FOuU3KGMmAs= 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:subject:message-id:mime-version :content-disposition:user-agent; bh=9XpBeK+dxnDxCR57TKSb1XDzYAvcy9LfRYYksLia1Gg=; b=qfpOsr7qr5SzqtQifSwzfwu6Bet+y0NcRgRXSeegZxp8V1aCoprcEQJYsyoSZZaJUL nwYWC0702hNLjSmqgCuu3Y5Vkc61o74BFeSmXT5wPG6pzsH291I9Orut0h/es+xPV9LL ReETvlGBbLM6O5s4qmWrl8amMx79nS8Tqzq1393LLsPUyICMn4bs48PXjbm1QXxD8LXS qFOb7b1f+TC0YawyAHVxeXb2j7J6C3aXe+YR9G1ylexniBo9IiIxnViPXwR7QoQie+2I wTpbUhJIfKrNVycJwR42xaC2folmyvhRhSGv4CycK5SLTCmJbBVj5wdITbiyaMP3bhmm HJBA== X-Gm-Message-State: APjAAAUXTIWGjLIwFU2aZyQG6//QtWcyFY73+TH2DXWNpDHiZgoetbNk Hq5HAJazT+QLJu23WT87bKJW/1AltbA= X-Google-Smtp-Source: APXvYqw8eE/bAvkNpZzAkDumRAU7JVv4Oowtnl1ZGfeOGVWoWTqB9tB62r55d19BwOoh+nUXkWWG5A== X-Received: by 2002:a6b:d319:: with SMTP id s25mr3768842iob.158.1551891787589; Wed, 06 Mar 2019 09:03:07 -0800 (PST) Received: from chatter.qube.local ([199.66.90.209]) by smtp.gmail.com with ESMTPSA id w127sm1308128itc.4.2019.03.06.09.03.05 for (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 06 Mar 2019 09:03:06 -0800 (PST) Date: Wed, 6 Mar 2019 12:03:02 -0500 From: Konstantin Ryabitsev To: meta@public-inbox.org Subject: RFE: default hooks for git repositories Message-ID: <20190306170302.GA21727@chatter.qube.local> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="UugvWAfsgieZRqgk" Content-Disposition: inline User-Agent: Mutt/1.10.1 (2018-07-13) List-Id: --UugvWAfsgieZRqgk Content-Type: text/plain; charset=utf-8; format=flowed Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hello: Since V2 creates git shards automatically, I suggest there should be a=20 way to tell it to install some set of default hooks in all new git repos=20 it creates. The easiest would be by using a skel dir and specifying it=20 in PI_CONFIG: [publicinbox] githooksskel=3D/usr/share/public-inbox/hooks We currently do it via a cronjob, but unless we run it very frequently,=20 there's a delay between when a new shard is created and when we add the=20 hooks to it. Best, -K --UugvWAfsgieZRqgk Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHQEABYIAB0WIQR2vl2yUnHhSB5njDW2xBzjVmSZbAUCXH/9RgAKCRC2xBzjVmSZ bIPNAPdbvjA/8SqFA2I4SGFJnVDohb9xJc6XotYHHrng5qy7AP9syx6L+o/7CFLH 5xyWfLhFCWE8cULkGWL7QzJOxxdqAA== =0/5a -----END PGP SIGNATURE----- --UugvWAfsgieZRqgk--