aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSitaram Chamarty <sitaram@atc.tcs.com>2016-01-13 21:41:14 +0530
committerSitaram Chamarty <sitaram@atc.tcs.com>2016-01-13 21:41:14 +0530
commitf480dbf9275b7a82ccbff208f2925a25864432b9 (patch)
treea360ec64a9e277f33bd52aabb19a4c188c28f606
parentssh-authkeys-split: avoid creating invalid keyfiles (diff)
downloadgitolite-gentoo-f480dbf9275b7a82ccbff208f2925a25864432b9.tar.gz
gitolite-gentoo-f480dbf9275b7a82ccbff208f2925a25864432b9.tar.bz2
gitolite-gentoo-f480dbf9275b7a82ccbff208f2925a25864432b9.zip
allow pre-auto-gc also when adding repo specific hooks
-rwxr-xr-xsrc/triggers/repo-specific-hooks4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/triggers/repo-specific-hooks b/src/triggers/repo-specific-hooks
index f8d2690..1158ff5 100755
--- a/src/triggers/repo-specific-hooks
+++ b/src/triggers/repo-specific-hooks
@@ -40,9 +40,9 @@ while (<>) {
next;
}
- unless ( $hook =~ /^(pre-receive|post-receive|post-update)$/ ) {
+ unless ( $hook =~ /^(pre-receive|post-receive|post-update|pre-auto-gc)$/ ) {
_warn "repo-specific-hooks: '$hook' is not allowed, ignoring";
- _warn " (only pre-receive, post-receive, and post-update are allowed)";
+ _warn " (only pre-receive, post-receive, post-update, and pre-auto-gc are allowed)";
next;
}