mugit/testscript/http-clone.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: clone |
| 2 | |
| 3 | git init local |
| 4 | cp readme.txt local/readme.txt |
| 5 | cp main.go local/main.go |
| 6 | git -C local add . |
| 7 | git -C local commit -m 'init' |
| 8 | |
| 9 | mugit repo new http-clone.git |
| 10 | git -C local push file://$REPOS/http-clone.git master |
| 11 | |
| 12 | |
| 13 | git clone $MURL/http-clone clone |
| 14 | exists clone/readme.txt |
| 15 | exists clone/main.go |
| 16 | |
| 17 | exec cat clone/readme.txt |
| 18 | stdout 'hello world' |
| 19 | |
| 20 | |
| 21 | -- readme.txt -- |
| 22 | hello world |
| 23 | |
| 24 | -- main.go -- |
| 25 | package main |
| 26 | |
| 27 | func main() { |
| 28 | println("hello") |
| 29 | } |