From 021a8af106fa01cf8fd3953ca97205853b3fca46 Mon Sep 17 00:00:00 2001 From: linonetwo Date: Tue, 10 Feb 2026 19:31:18 +0800 Subject: [PATCH] Update index.ts --- src/services/gitServer/index.ts | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/services/gitServer/index.ts b/src/services/gitServer/index.ts index f2096d57..59f5a3ff 100644 --- a/src/services/gitServer/index.ts +++ b/src/services/gitServer/index.ts @@ -96,6 +96,12 @@ export class GitServerService implements IGitServerService { const repoPath = await this.resolveRepoPathOrError(workspaceId, subscriber); if (!repoPath) return; + logger.debug('Git upload-pack start', { + workspaceId, + repoPath, + requestBodySize: requestBody.length, + }); + subscriber.next({ type: 'headers', statusCode: 200, @@ -108,6 +114,7 @@ export class GitServerService implements IGitServerService { const git = gitSpawn(['upload-pack', '--stateless-rpc', repoPath], repoPath, { env: { GIT_PROJECT_ROOT: repoPath, + GIT_HTTP_EXPORT_ALL: '1', }, });