mugit repo new new-test-repo exists $REPOS/new-test-repo.git/HEAD exists $REPOS/new-test-repo.git/objects/ exists $REPOS/new-test-repo.git/refs/ exists $REPOS/new-test-repo.git/hooks/pre-receive exists $REPOS/new-test-repo.git/hooks/update exists $REPOS/new-test-repo.git/hooks/post-receive exists $REPOS/new-test-repo.git/hooks/post-update exists $REPOS/new-test-repo.git/hooks/pre-receive.d/ exists $REPOS/new-test-repo.git/hooks/update.d/ exists $REPOS/new-test-repo.git/hooks/post-receive.d/ exists $REPOS/new-test-repo.git/hooks/post-update.d/ # missing repo name ! mugit repo new stderr 'no name provided' # repo already exists mugit repo new existing-repo ! mugit repo new existing-repo stderr 'already exists' # invalid mirror URL ! mugit repo new mirrored-repo --mirror 'invalid://url' stderr 'only http and https remotes are supported' ! exists $REPOS/mirrored-repo.git ! mugit repo new mirrored-repo-ssh --mirror 'git@github.com:olexsmir/gopher.nvim.git' stderr 'only http and https remotes are supported' ! exists $REPOS/mirrored-repo-ssh.git