mugit/testscript/cli-repo-private.txtar (view raw)
| 1 | mugit repo new test-private |
| 2 | |
| 3 | |
| 4 | exec cat $REPOS/test-private.git/config |
| 5 | stdout 'private = false' |
| 6 | |
| 7 | |
| 8 | mugit repo private test-private |
| 9 | stderr 'is_private=true' # fix output |
| 10 | |
| 11 | exec cat $REPOS/test-private.git/config |
| 12 | stdout 'private = true' |
| 13 | |
| 14 | |
| 15 | mugit repo private test-private.git |
| 16 | stderr 'is_private=false' # fix output |
| 17 | |
| 18 | exec cat $REPOS/test-private.git/config |
| 19 | stdout 'private = false' |
| 20 | |
| 21 | |
| 22 | # missing repo name |
| 23 | ! mugit repo private |
| 24 | stderr 'no name provided' |
| 25 | |
| 26 | # repo does not exist |
| 27 | ! mugit repo private nonexistent |
| 28 | stderr 'failed to open repo' |