summaryrefslogtreecommitdiff
path: root/server/src/git.rs
AgeCommit message (Collapse)Author
2025-01-26Make sure git repo is configured to let pre-receive and post-receiveJoel Klinghed
hooks handle delete and fast forward rules.
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-26Fix tests after adding git reposJoel Klinghed
Use testdir to create directories to put test git in. Use custom test method to find githook binary. Stop using remote so that git repo doesn't try to fetch.
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.