all repos

mugit @ aaf0e5f796a25976779c0da320ef9087bfc51ab0

🐮 git server that your cow will love

mugit/testscript/ssh-push.txtar (view raw)

Oleksandr Smirnov Oleksandr Smirnov
olexsmir@gmail.com
ssh: dont open repo on invalid commands, 1 month ago
1
git init local
2
cp file.txt local/file.txt
3
git -C local add file.txt
4
git -C local commit -m initial
5
6
mugit repo new ssh-push
7
exec env GIT_SSH_COMMAND=$SSH_WRAPPER git -C local push git@localhost:ssh-push.git master
8
9
exec git clone $MURL/ssh-push verify-clone
10
exists verify-clone/file.txt
11
exec cat verify-clone/file.txt
12
stdout 'hello from ssh'
13
14
15
# should not allow execution of commands
16
! exec $SSH_WRAPPER ignored 'echo hi'
17
stderr 'access denied:'
18
19
20
-- file.txt --
21
hello from ssh