diff options
author | Rafael G. Martins <rafael@rafaelmartins.eng.br> | 2018-05-26 18:33:27 +0200 |
---|---|---|
committer | Rafael G. Martins <rafael@rafaelmartins.eng.br> | 2018-05-26 18:33:27 +0200 |
commit | b42538956a08f009060a56c48f8844f96165daa4 (patch) | |
tree | bdbf3754b2eeb57f4b233e9570f786e1f6442ec6 /tests/blogc-git-receiver | |
parent | 151b096f3d2859a9c77915477047c998cf2c1a95 (diff) | |
download | blogc-b42538956a08f009060a56c48f8844f96165daa4.tar.gz blogc-b42538956a08f009060a56c48f8844f96165daa4.tar.bz2 blogc-b42538956a08f009060a56c48f8844f96165daa4.zip |
git-receiver: added support to use as an authorized_keys commmand
Diffstat (limited to 'tests/blogc-git-receiver')
-rwxr-xr-x | tests/blogc-git-receiver/check_shell.sh.in | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/blogc-git-receiver/check_shell.sh.in b/tests/blogc-git-receiver/check_shell.sh.in index 1c84b8a..8743293 100755 --- a/tests/blogc-git-receiver/check_shell.sh.in +++ b/tests/blogc-git-receiver/check_shell.sh.in @@ -63,6 +63,13 @@ else grep "agent=" "${TEMP}/output.txt" &> /dev/null fi +echo 0000 | SSH_ORIGINAL_COMMAND="git-upload-pack 'lol.git'" call_bgr 2>&1 > "${TEMP}/output.txt" +if [[ -n "${VALGRIND}" ]]; then + grep "git-shell -c \"git-upload-pack '.*repos/lol.git'\"" "${TEMP}/output.txt" &> /dev/null +else + grep "agent=" "${TEMP}/output.txt" &> /dev/null +fi + echo 0000 | call_bgr -c "git-upload-archive 'lol.git'" 2>&1 > "${TEMP}/output.txt" || true if [[ -n "${VALGRIND}" ]]; then grep "git-shell -c \"git-upload-archive '.*repos/lol.git'\"" "${TEMP}/output.txt" &> /dev/null |