From 8a28d1f1ef2dfe236008bb842de2ff67779cfd33 Mon Sep 17 00:00:00 2001 From: Jeffery Date: Mon, 11 May 2026 13:50:54 +0000 Subject: [PATCH] =?UTF-8?q?test:=20=E4=BF=AE=E6=AD=A3=E8=B7=AF=E5=BE=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/git.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/app/git.js b/app/git.js index 87ec0c9..123178d 100644 --- a/app/git.js +++ b/app/git.js @@ -1,5 +1,4 @@ import { spawnSync } from 'child_process'; -import path from 'path'; import { GITEA_SERVER_URL, GITEA_REPOSITORY, GITEA_TOKEN, PR_HEAD_BRANCH, FINDINGS_PATH } from './config.js'; function git(args, cwd) { @@ -10,7 +9,7 @@ function git(args, cwd) { } export async function commitAndPush(workspace) { - const repoDir = path.join(workspace, GITEA_REPOSITORY); + const repoDir = workspace; const remoteUrl = GITEA_SERVER_URL.replace(/\/$/, '') .replace('https://', `https://${GITEA_TOKEN}@`) .replace('http://', `http://${GITEA_TOKEN}@`) + `/${GITEA_REPOSITORY}.git`;