mugit/testscript/ssh-clone-nonexistent.txtar (view raw)
| 1 | git init local |
| 2 | cp readme.txt local/readme.txt |
| 3 | git -C local add . |
| 4 | git -C local commit -m 'init' |
| 5 | |
| 6 | mugit repo new ssh-clone.git |
| 7 | git -C local push file://$REPOS/ssh-clone.git master |
| 8 | |
| 9 | |
| 10 | exec env GIT_SSH_COMMAND=$SSH_WRAPPER git clone git@localhost:ssh-clone.git clone |
| 11 | exists clone/readme.txt |
| 12 | |
| 13 | exec cat clone/readme.txt |
| 14 | stdout 'hello world' |
| 15 | |
| 16 | |
| 17 | # clone non existent repo |
| 18 | ! exec env GIT_SSH_COMMAND=$SSH_WRAPPER git clone git@localhost:nonexistent.git wont-clone |
| 19 | stderr 'fatal: repository not found' |
| 20 | ! stderr 'ERROR mugit' |
| 21 | |
| 22 | |
| 23 | -- readme.txt -- |
| 24 | hello world |