8 files changed,
44 insertions(+),
38 deletions(-)
Author:
Oleksandr Smirnov
olexsmir@gmail.com
Committed at:
2026-04-03 19:36:42 +0300
Authored at:
2026-04-03 19:34:21 +0300
Change ID:
ptnxwymkvukxnulsrowsxokoowovuvro
Parent:
dbbfe17
jump to
M
testscript/cli-repo-description.txtar
路路路 8 8 9 9 mugit repo description desc-repo 10 10 stderr 'new_description="new test desc"' # fix output 11 + 12 +# missing repo name 13 +! mugit repo description 14 +stderr 'no name provided' 15 + 16 +# repo does not exist 17 +! mugit repo description nonexistent 18 +stderr 'failed to open repo'
D
testscript/cli-repo-new-errors.txtar
路路路 1 -# missing repo name 2 -! mugit repo new 3 -stderr 'no name provided' 4 - 5 -# repo already exists 6 -mugit repo new existing-repo 7 -! mugit repo new existing-repo 8 -stderr 'already exists' 9 - 10 -# invalid mirror URL 11 -! mugit repo new mirrored-repo --mirror 'invalid://url' 12 -stderr 'only http and https remotes are supported' 13 -! exists $REPOS/mirrored-repo.git 14 - 15 -! mugit repo new mirrored-repo-ssh --mirror 'git@github.com:olexsmir/gopher.nvim.git' 16 -stderr 'only http and https remotes are supported' 17 -! exists $REPOS/mirrored-repo-ssh.git
M
testscript/cli-repo-new.txtar
路路路 4 4 exists $REPOS/new-test-repo.git/HEAD 5 5 exists $REPOS/new-test-repo.git/objects/ 6 6 exists $REPOS/new-test-repo.git/refs/ 7 + 8 + 9 +# missing repo name 10 +! mugit repo new 11 +stderr 'no name provided' 12 + 13 +# repo already exists 14 +mugit repo new existing-repo 15 +! mugit repo new existing-repo 16 +stderr 'already exists' 17 + 18 +# invalid mirror URL 19 +! mugit repo new mirrored-repo --mirror 'invalid://url' 20 +stderr 'only http and https remotes are supported' 21 +! exists $REPOS/mirrored-repo.git 22 + 23 +! mugit repo new mirrored-repo-ssh --mirror 'git@github.com:olexsmir/gopher.nvim.git' 24 +stderr 'only http and https remotes are supported' 25 +! exists $REPOS/mirrored-repo-ssh.git
M
testscript/cli-repo-private.txtar
路路路 17 17 18 18 exec cat $REPOS/test-private.git/config 19 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'
M
testscript/cli-repo-set-default.txtar
路路路 33 33 exec cat $REPOS/heady.git/HEAD 34 34 stdout 'ref: refs/heads/master' 35 35 36 +# can't use non existent branch 37 +! mugit repo set-default nonexistent main 38 +stderr 'failed to open repo' 39 + 40 +# no repo provided 41 +! mugit repo set-default 42 +stderr 'no name provided' 43 + 36 44 37 45 -- file.txt -- 38 46 initial content