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/src/main.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'server/src/main.rs') diff --git a/server/src/main.rs b/server/src/main.rs index 8c59b23..e4dff68 100644 --- a/server/src/main.rs +++ b/server/src/main.rs @@ -1208,7 +1208,6 @@ async fn get_translation_review_users( )] #[post("/translation//new", data = "")] async fn translation_review_new( - db: &Db, mut conn: Connection, roots_state: &State, session: auth::Session, @@ -1259,7 +1258,7 @@ async fn translation_review_new( } roots_state - .new_translation_review(db, projectid, translation_reviewid, base.as_str()) + .new_translation_review(&mut conn, projectid, translation_reviewid, base.as_str()) .map_err(|e| Custom(Status::InternalServerError, format!("{e}"))) .await?; -- cgit v1.2.3-70-g09d2