aboutsummaryrefslogtreecommitdiffstats
path: root/tests/blogc-git-receiver/check_post_receive.sh
diff options
context:
space:
mode:
authorRafael G. Martins <rafael@rafaelmartins.eng.br>2016-10-10 03:08:13 +0200
committerRafael G. Martins <rafael@rafaelmartins.eng.br>2016-10-10 03:08:13 +0200
commit84dbde7d04a04434721ec9d2965af6d946713e5d (patch)
tree9369ab391e06f784eef1af34829e6b8b8101beb0 /tests/blogc-git-receiver/check_post_receive.sh
parent88c8b6bde982b31245e6503950b29b330617b387 (diff)
downloadblogc-84dbde7d04a04434721ec9d2965af6d946713e5d.tar.gz
blogc-84dbde7d04a04434721ec9d2965af6d946713e5d.tar.bz2
blogc-84dbde7d04a04434721ec9d2965af6d946713e5d.zip
trying to fix tests on travis
Diffstat (limited to 'tests/blogc-git-receiver/check_post_receive.sh')
-rwxr-xr-xtests/blogc-git-receiver/check_post_receive.sh8
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/blogc-git-receiver/check_post_receive.sh b/tests/blogc-git-receiver/check_post_receive.sh
index 954787b..ca1d428 100755
--- a/tests/blogc-git-receiver/check_post_receive.sh
+++ b/tests/blogc-git-receiver/check_post_receive.sh
@@ -44,18 +44,18 @@ git init --bare "${TEMP}/repos/bar.git" &> /dev/null
HOME="${TEMP}" ${TESTS_ENVIRONMENT} ./hooks/post-receive 2>&1 | tee "${TEMP}/output.txt"
grep "warning: repository mirroring disabled" "${TEMP}/output.txt" &> /dev/null
-git config --local remote.mirror.pushurl "${TEMP}/repos/bar.git"
+git config remote.mirror.pushurl "${TEMP}/repos/bar.git"
HOME="${TEMP}" ${TESTS_ENVIRONMENT} ./hooks/post-receive 2>&1 | tee "${TEMP}/output.txt"
grep "[new branch] *master" "${TEMP}/output.txt" &> /dev/null
-git config --local --unset remote.mirror.pushurl
+git config --unset remote.mirror.pushurl
rm -rf "${TEMP}/repos/bar.git"
git init --bare "${TEMP}/repos/bar.git" &> /dev/null
-git config --local remote.mirror.url "${TEMP}/repos/bar.git"
+git config remote.mirror.url "${TEMP}/repos/bar.git"
HOME="${TEMP}" ${TESTS_ENVIRONMENT} ./hooks/post-receive 2>&1 | tee "${TEMP}/output.txt"
grep "[new branch] *master" "${TEMP}/output.txt" &> /dev/null
-git config --local --unset remote.mirror.url
+git config --unset remote.mirror.url
rm -rf "${TEMP}/repos/bar.git"
cat > "${TEMP}/blogc-git-receiver.ini" <<EOF
[repo:boo.git]