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_post_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_post_receive.sh.in')
-rwxr-xr-x | tests/blogc-git-receiver/check_post_receive.sh.in | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/blogc-git-receiver/check_post_receive.sh.in b/tests/blogc-git-receiver/check_post_receive.sh.in index 9c6ded1..f0dde80 100755 --- a/tests/blogc-git-receiver/check_post_receive.sh.in +++ b/tests/blogc-git-receiver/check_post_receive.sh.in @@ -110,7 +110,7 @@ mirror = ${TEMP}/repos/bar6.git mirror = lol EOF git init --bare "${TEMP}/repos/bar6.git" &> /dev/null -HOME="${TEMP}" ${TESTS_ENVIRONMENT} ./repos/foo.git/hooks/post-receive 2>&1 | tee "${TEMP}/output.txt" +BLOGC_GIT_RECEIVER_BASEDIR="${TEMP}" ${TESTS_ENVIRONMENT} ./repos/foo.git/hooks/post-receive 2>&1 | tee "${TEMP}/output.txt" grep "[new branch] *master" "${TEMP}/output.txt" &> /dev/null rm "${TEMP}/output.txt" |