mugit/testscript/http-push-denied.txtar (view raw)
Oleksandr Smirnov
Oleksandr Smirnov
olexsmir@gmail.com test: add missing tests (#5)..., 2 months ago
olexsmir@gmail.com test: add missing tests (#5)..., 2 months ago
| 1 | # http: reject push |
| 2 | |
| 3 | git init local |
| 4 | cp file.txt local/file.txt |
| 5 | git -C local add file.txt |
| 6 | git -C local commit -m initial |
| 7 | |
| 8 | mugit repo new http-push |
| 9 | |
| 10 | |
| 11 | ! git -C local push $MURL/http-push.git master |
| 12 | stderr 'remote: pushes are only supported over ssh' |
| 13 | |
| 14 | |
| 15 | -- file.txt -- |
| 16 | hello |