On Mon, Jan 06, 2014 at 04:38:35PM +0100, Didier Raboud wrote:
> Package: git-buildpackage
> Version: 0.6.8
> Severity: important
> File: /usr/bin/gbp-create-remote-repo
> 
> Hi,
> 
> following the (new) advice on
> https://wiki.debian.org/Alioth/Git?action=recall&rev=95#Collab_Maint_project
> I used gbp create-remote-repo to create a new collab-maint git
> repository. Unfortunately, this tool doesn't set the hooks set by
> /git/collab-maint/setup-repository, aka (currently):
> 
>       # Enable the hook scripts
>       [ -f hooks/post-update ] || cp hooks/post-update.sample 
> hooks/post-update
>       
>       cat >hooks/post-receive <<END
>       #!/bin/sh
>       exec /usr/local/bin/git-commit-notice
>       END
>       
>       chmod a+x hooks/post-update hooks/post-receive

The right thing to do in this case would be to invoke

    gbp reate-remote-repo --template-dir=/sane/templates/for/collab-maint ...

while /sane/templates/for/collab-maint (on git.debian.org) would contain
the post-update and post-receive hooks you want. This way we could to
away with the script and gbp create-remote-repo and git init could just
use the same templates without manual fiddling. 

I'd be happy to help to setup /git/collab-maint/templates/hooks. We
should then change setup-repository to use this templates as well.
Cheers,
 -- Guido


-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to