Parent directory

default-repo.txtar

913 bytes
 1# vi: set ft=conf
 2
 3env SOFT_SERVE_DEFAULT_REPO=gitops
 4
 5# start soft serve, with no prior `repo create` call for the default repo,
 6# and no anon-access overrides -- just an ordinary seeded admin key
 7exec soft serve &
 8# wait for SSH server to start
 9ensureserverrunning SSH_PORT
10
11# the default repo must exist and be clonable with zero manual setup
12soft repo list
13stdout 'gitops'
14
15git clone ssh://localhost:$SSH_PORT/gitops gitops
16mkfile ./gitops/README.md '# gitops'
17git -C gitops add -A
18git -C gitops commit -m 'first'
19git -C gitops push origin HEAD
20
21# restart-safety: booting again against the same data dir must not error,
22# duplicate, or reset the repo's content
23stopserver
24ensureservernotrunning SSH_PORT
25exec soft serve &
26ensureserverrunning SSH_PORT
27
28soft repo list
29stdout 'gitops'
30
31git clone ssh://localhost:$SSH_PORT/gitops gitops2
32grep '# gitops' gitops2/README.md
33
34# stop the server
35[windows] stopserver