diff options
author | Rafael G. Martins <rafael@rafaelmartins.eng.br> | 2018-05-30 22:19:59 +0200 |
---|---|---|
committer | Rafael G. Martins <rafael@rafaelmartins.eng.br> | 2018-05-30 22:19:59 +0200 |
commit | 9acec235a6c47c3bede917187808a8acd1369050 (patch) | |
tree | de32925e547c9b52a307d7b987370d1145936943 /tests/blogc-git-receiver/check_pre_receive.sh.in | |
parent | b42538956a08f009060a56c48f8844f96165daa4 (diff) | |
download | blogc-9acec235a6c47c3bede917187808a8acd1369050.tar.gz blogc-9acec235a6c47c3bede917187808a8acd1369050.tar.bz2 blogc-9acec235a6c47c3bede917187808a8acd1369050.zip |
git-receiver: allow users to change the base directory
this is useful mostly for shared environments that just provide one
shell user.
Diffstat (limited to 'tests/blogc-git-receiver/check_pre_receive.sh.in')
-rwxr-xr-x | tests/blogc-git-receiver/check_pre_receive.sh.in | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/blogc-git-receiver/check_pre_receive.sh.in b/tests/blogc-git-receiver/check_pre_receive.sh.in index e9181eb..6021cfb 100755 --- a/tests/blogc-git-receiver/check_pre_receive.sh.in +++ b/tests/blogc-git-receiver/check_pre_receive.sh.in @@ -199,7 +199,7 @@ EOF 0000000000000000000000000000000000000000 $(git rev-parse HEAD) refs/heads/master EOF - SHELL="${SELF}" HOME="${TEMP}" PATH="@abs_top_builddir@:${PATH}" GIT_DIR=. ${TESTS_ENVIRONMENT} ./hooks/pre-receive < "${TEMP}/payload.txt" 2>&1 | tee "${TEMP}/output.txt" || true + SHELL="${SELF}" BLOGC_GIT_RECEIVER_BASEDIR="${TEMP}" PATH="@abs_top_builddir@:${PATH}" GIT_DIR=. ${TESTS_ENVIRONMENT} ./hooks/pre-receive < "${TEMP}/payload.txt" 2>&1 | tee "${TEMP}/output.txt" || true grep "blogc-make: error: settings: " "${TEMP}/output.txt" &> /dev/null fi |