From f9b7c2a14c939d0bb7d1ac2fcca3116e38e37f74 Mon Sep 17 00:00:00 2001 From: Joel Klinghed Date: Sun, 22 Jun 2025 22:57:08 +0200 Subject: Add support for pushing changes to a translation review Finally got around to fixing the pre-receive hook to include quarantined objects so the hook actually can run git commands on the not-yet-accepted commits. As part of that, had to make sure git hook and eyeballs server had the same path to the repo or confusion will appear. --- server/common/src/git_socket.rs | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'server/common/src/git_socket.rs') diff --git a/server/common/src/git_socket.rs b/server/common/src/git_socket.rs index a4805be..6e1c7d4 100644 --- a/server/common/src/git_socket.rs +++ b/server/common/src/git_socket.rs @@ -5,16 +5,14 @@ pub struct GitReceive { pub old_value: String, pub new_value: String, pub reference: String, - // Only set for pre hooks, because server can't read the objects the pre-hook has not yet - // accepted, so to be able to validate the commiter, send them. Also only set if new_value - // is not empty. - pub commiter: Option, } #[derive(Deserialize, Serialize)] pub struct GitHookRequest { pub pre: bool, pub receive: Vec, + pub object_dir: Option, + pub alt_object_dirs: Option, } #[derive(Deserialize, Serialize)] -- cgit v1.2.3-70-g09d2