From 9ffc7c9fb34826046c626c1e0e0de4c930113808 Mon Sep 17 00:00:00 2001 From: zhenyi <434836402@qq.com> Date: Sat, 30 May 2026 20:06:44 +0800 Subject: [PATCH] refactor(git): update git command to use trusted parameters - Modified commit creation to use trusted GitCommandParams - Ensured secure command execution with trusted parameter validation - Maintained existing commit OID handling and update reference logic --- lib/git/cmd/commit/commit_create.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/git/cmd/commit/commit_create.rs b/lib/git/cmd/commit/commit_create.rs index a35c357..8fc7bde 100644 --- a/lib/git/cmd/commit/commit_create.rs +++ b/lib/git/cmd/commit/commit_create.rs @@ -153,7 +153,7 @@ impl GitBare { commit_oid.as_str().to_string(), ]; let _update_output = self.git_command_with( - GitCommandParams::new(update_ref_args), + GitCommandParams::new(update_ref_args).trusted(), )?; Ok(commit_oid)