all repos

mugit @ be1cdfd

🐮 git server that your cow will love

mugit/testscript/cli-repo-new.txtar (view raw)

Oleksandr Smirnov Oleksandr Smirnov
olexsmir@gmail.com
setup per repo hooks, 22 days ago
1
mugit repo new new-test-repo
2
3
4
exists $REPOS/new-test-repo.git/HEAD
5
exists $REPOS/new-test-repo.git/objects/
6
exists $REPOS/new-test-repo.git/refs/
7
exists $REPOS/new-test-repo.git/hooks/pre-receive
8
exists $REPOS/new-test-repo.git/hooks/update
9
exists $REPOS/new-test-repo.git/hooks/post-receive
10
exists $REPOS/new-test-repo.git/hooks/post-update
11
exists $REPOS/new-test-repo.git/hooks/pre-receive.d/
12
exists $REPOS/new-test-repo.git/hooks/update.d/
13
exists $REPOS/new-test-repo.git/hooks/post-receive.d/
14
exists $REPOS/new-test-repo.git/hooks/post-update.d/
15
16
17
# missing repo name
18
! mugit repo new
19
stderr 'no name provided'
20
21
# repo already exists
22
mugit repo new existing-repo
23
! mugit repo new existing-repo
24
stderr 'already exists'
25
26
# invalid mirror URL
27
! mugit repo new mirrored-repo --mirror 'invalid://url'
28
stderr 'only http and https remotes are supported'
29
! exists $REPOS/mirrored-repo.git
30
31
! mugit repo new mirrored-repo-ssh --mirror 'git@github.com:olexsmir/gopher.nvim.git'
32
stderr 'only http and https remotes are supported'
33
! exists $REPOS/mirrored-repo-ssh.git