summaryrefslogtreecommitdiff
path: root/server/src/git_root.rs
AgeCommit message (Collapse)Author
2025-02-20WIPWIPJoel Klinghed
2025-02-06Add DELETE command for reviewJoel Klinghed
Only the owner or a maintainer of the project can remove a review. Removing a review also removes the git branch. Only reviews that are either draft or dropped can be removed.
2025-01-29Add git-server to docker-composeJoel Klinghed
To make a githook that can run on alpine images (using musl) they need to be cross-compiled. Then it became apparent that the githook binary was pulling in all the same dependencies as the server was. This is not good, but apparently also not something Rust/Cargo has figured out. RFC:s has been shutdown. workspace might be an option but then I probably need to also add a "code shared by both githook and server" library that both can link. Problem for another day.
2025-01-28Remove leftover printoutJoel Klinghed
2025-01-26Drive-by: Correct commentJoel Klinghed
2025-01-26Improve error output in hooks and make sure errors and accumilatedJoel Klinghed
2025-01-26Stop using current user in git hooksJoel Klinghed
Want to support any authentication for the git server, so use git commiter as username for creating reviews instead of the local user that logged in to git. Also verify that pushed commits has a valid author in pre-receive. This is tricky as pre-receive must do this check in the hook, because pre-receive runs when before the objects are pushed so the server can't read the commits, the hook must do this.
2025-01-26Use anyhow to reduce enum error types and map_errJoel Klinghed
2025-01-26Add basic git supportJoel Klinghed
Pushing a commit to a new branch creates a review. Each project has its own git directory, with githooks installed that talkes with server process via unix sockets.