diff options
author | Sitaram Chamarty <sitaram@atc.tcs.com> | 2016-01-13 21:41:14 +0530 |
---|---|---|
committer | Sitaram Chamarty <sitaram@atc.tcs.com> | 2016-01-13 21:41:14 +0530 |
commit | f480dbf9275b7a82ccbff208f2925a25864432b9 (patch) | |
tree | a360ec64a9e277f33bd52aabb19a4c188c28f606 | |
parent | ssh-authkeys-split: avoid creating invalid keyfiles (diff) | |
download | gitolite-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-x | src/triggers/repo-specific-hooks | 4 |
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; } |