From 76af1279d9a4ab574d87e93466166b7b210c2bad Mon Sep 17 00:00:00 2001 From: Holger Weiss Date: Mon, 7 Oct 2013 01:53:18 +0200 Subject: Move test site hooks into separate file Put the code for creating the test instance into a separate hook file in order to make the other files less convoluted. --- libexec/post-receive.d/01-git-export | 22 ---------------------- 1 file changed, 22 deletions(-) (limited to 'libexec/post-receive.d/01-git-export') diff --git a/libexec/post-receive.d/01-git-export b/libexec/post-receive.d/01-git-export index 171f05f..37994e2 100755 --- a/libexec/post-receive.d/01-git-export +++ b/libexec/post-receive.d/01-git-export @@ -19,26 +19,4 @@ export PATH='/usr/local/bin:/usr/local/sbin:/bin:/sbin:/usr/bin:/usr/sbin' prefix='/home/plugins' -# -# Check whether the "test" branch of the "site.git" repository has been updated. -# -if [ "${PWD##*/}" = 'site.git' ] -then - forty_zeros=$(printf '%.40d' '0') - - while read old new ref - do - if [ "$ref" = 'refs/heads/test' ] - then - if [ "$new" != "$forty_zeros" ] - then - "$prefix/bin/git-export" -b 'test' "$PWD" - else - rm -rf "$prefix/exported/site-test" - fi - break - fi - done -fi - exec "$prefix/bin/git-export" "$PWD" -- cgit v1.2.3-74-g34f1