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/trans.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'server/src/trans.rs') diff --git a/server/src/trans.rs b/server/src/trans.rs index c4e3b45..3f47c8b 100644 --- a/server/src/trans.rs +++ b/server/src/trans.rs @@ -4,6 +4,7 @@ use anyhow; use futures::stream::TryStreamExt; use rocket_db_pools::{sqlx, Database, Pool}; use sorted_insert::SortedInsertByKey; +use sqlx::Acquire; use std::borrow::Cow; use std::collections::{HashMap, HashSet}; use std::fs::File; @@ -262,7 +263,7 @@ struct TranslationString { } pub async fn review_add_strings( - db: &Db, + db: &mut DbConnection, translation_reviewid: u64, strings: Vec, base: bool, -- cgit v1.2.3-70-g09d2