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: X-Spam-Status: No, score=-4.0 required=3.0 tests=ALL_TRUSTED,BAYES_00 shortcircuit=no autolearn=ham autolearn_force=no version=3.4.2 Received: from localhost (dcvr.yhbt.net [127.0.0.1]) by dcvr.yhbt.net (Postfix) with ESMTP id D108E20248; Mon, 1 Apr 2019 18:04:03 +0000 (UTC) Date: Mon, 1 Apr 2019 18:04:03 +0000 From: Eric Wong To: Konstantin Ryabitsev Cc: meta@public-inbox.org Subject: Re: RFE: default hooks for git repositories Message-ID: <20190401180403.o4zgowgyh3qq23iz@dcvr> References: <20190306170302.GA21727@chatter.qube.local> <20190307024241.lhlf65uqsbjywfv3@dcvr> <20190308230116.7lnfrcns4lscxrir@whir> <20190318231152.3wetgoicjw7vyf7w@dcvr> <20190401154100.GA3701@chatter.qube.local> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20190401154100.GA3701@chatter.qube.local> List-Id: Konstantin Ryabitsev wrote: > On Mon, Mar 18, 2019 at 11:11:52PM +0000, Eric Wong wrote: > > Eric Wong wrote: > > > Actually, is there a reason the git-native "init.templateDir" > > > configuration variable isn't sufficient? > > > > Ping? > > 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. > [1] https://github.com/mricon/grokmirror/ I should look into that for my own mirrors, even :)