Commits
- Commit:
2f43cd698e3fcc3000262b3e0f3a2119f06345bb
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
remove dependency of gitwrapper, gotctl, and gotsh on object_parse.c
Move some functions from object_parse.c into hash.c. These functions either
require hash.c code anyway or contain object ID implementation internals.
Add a new file object_qid.c, for got_object_id_queue and got_object_qid.
This new file must be linked to virtually every program.
- Commit:
53bf0b541977b66862040d4b633fb6b5d3a3c6c8
- From:
- Omar Polo <op@omarpolo.com>
- Date:
rename lib/sha1.c to lib/hash.c
It will soon grow functions to deal with sha256 too. stsp@ agrees.
- Commit:
13b2bc374c1870ec27b2eeb40efe68fd465f64bb
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
introduce gotd(8), a Git repository server reachable via ssh(1)
This is an initial barebones implementation which provides the absolute
minimum of functionality required to serve got(1) and git(1) clients.
Basic fetch/send functionality has been tested and seems to work here,
but this server is not yet expected to be stable.
More testing is welcome. See the man pages for setup instructions.
The current design uses one reader and one writer process per repository,
which will have to be extended to N readers and N writers in the future.
At startup, each process will chroot(2) into its assigned repository.
This works because gotd(8) can only be started as root, and will then
fork+exec, chroot, and privdrop.
At present the parent process runs with the following pledge(2) promises:
"stdio rpath wpath cpath proc getpw sendfd recvfd fattr flock unix unveil"
The parent is the only process able to modify the repository in a way
that becomes visible to Git clients. The parent uses unveil(2) to
restrict its view of the filesystem to /tmp and the repositories
listed in the configuration file gotd.conf(5).
Per-repository chroot(2) processes use "stdio rpath sendfd recvfd".
The writer defers to the parent for modifying references in the
repository to point at newly uploaded commits. The reader is fine
without such help, because Git repositories can be read without
having to create any lock-files.
gotd(8) requires a dedicated user ID, which should own repositories
on the filesystem, and a separate secondary group, which should not
have filesystem-level repository access, and must be allowed access
to the gotd(8) socket.
To obtain Git repository access, users must be members of this
secondary group, and must have their login shell set to gotsh(1).
gotsh(1) connects to the gotd(8) socket and speaks Git-protocol
towards the client on the other end of the SSH connection.
gotsh(1) is not an interactive command shell.
At present, authenticated clients are granted read/write access to
all repositories and all references (except for the "refs/got/" and
the "refs/remotes/" namespaces, which are already being protected
from modification).
While complicated access control mechanism are not a design goal,
making it possible to safely offer anonymous Git repository access
over ssh(1) is on the road map.
- Commit:
7fb414ae4d46ebdaeff458477ba801f9ad5853c4
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
add a -q option to tests for quiet output and use it for 'make regress'
Previous default output remains when test cases are run individually.
ok tracey
- Commit:
ea0bbcf85814cba68a68039e391ed8df51ea4a1e
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
fix idset_test build broken in 2256993b27260cd7860c34b47751dff21a7083a8
- Commit:
2256993b27260cd7860c34b47751dff21a7083a8
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
avoid dependency on delta.o in binaries which don't need it
- Commit:
9b6578d818b4e251ebb1efdeaf441385c713a4f1
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
make regress build again
- Commit:
9e672c7443bebadbd8806c9a4366543f852eb372
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
implement got_ref_write()
- Commit:
6353ad76e488c8d0df631a779571fdeb41fc9c70
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
make 'got update' merge file edits
- Commit:
25a58941e2beadb3c782e68c751bd74947177955
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
remove the pathset abstraction again; replaced by RB tree
- Commit:
90285c3b5b24fe56d9ea77e33199bcd395595b95
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
properly remove empty directories left behind during updates
- Commit:
f054b67ad04873dfbc5d2644a77c3cf422af3c67
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
remove object_idcache; use object_idset instead
- Commit:
6bef87be901a62ffff4a5e52932fdab9c0d8cb27
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
move object cache out of repository.c to its own file
- Commit:
079b2f6564ee7fbd71071aedde0c3c317b985d46
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
add a Makefile hierarchy which builds the whole show
- Commit:
a440fac05e070a11112ddfdd8b655bf07c6c6bb7
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
move object parsing code into a separate file
- Commit:
63581804340e880bf611c6a4a59eda26c503799f
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
rename zbuf to inflate
- Commit:
eb77ee116adf68529f88c2ab3de1ce2aaf0c1b52
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
add an object id cache which backs the object cache
- Commit:
ddb547b4ba4b22af3a10702f0f596151fbbf1e31
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
tests for object id sets