From fbc50d4810ef36a6936227222e90e3455c4144c3 Mon Sep 17 00:00:00 2001 From: Petr Baudis Date: Wed, 18 Nov 2009 13:16:47 +0100 Subject: [PATCH] hooks/post-update: Introduce, use - fixes HTTP transport for push repos --- Girocco/Project.pm | 2 +- hooks/post-update | 8 ++++++++ 2 files changed, 9 insertions(+), 1 deletion(-) create mode 100755 hooks/post-update diff --git a/Girocco/Project.pm b/Girocco/Project.pm index 179a663..e009948 100644 --- a/Girocco/Project.pm +++ b/Girocco/Project.pm @@ -240,7 +240,7 @@ sub _hook_install { sub _hooks_install { my $self = shift; - foreach my $hook ('post-receive', 'update') { + foreach my $hook ('post-receive', 'update', 'post-update') { $self->_hook_install($hook); } } diff --git a/hooks/post-update b/hooks/post-update new file mode 100755 index 0000000..5323b56 --- /dev/null +++ b/hooks/post-update @@ -0,0 +1,8 @@ +#!/bin/sh +# +# An example hook script to prepare a packed repository for use over +# dumb transports. +# +# To enable this hook, rename this file to "post-update". + +exec git-update-server-info -- 2.11.4.GIT