diff --git a/backend/server/src/SecureGitClient.ts b/backend/server/src/SecureGitClient.ts index 34f5322..faf8f14 100644 --- a/backend/server/src/SecureGitClient.ts +++ b/backend/server/src/SecureGitClient.ts @@ -57,7 +57,7 @@ export class SecureGitClient { // Add files to the repository for (const { id, data } of fileData) { - await git.add(id) + await git.add(id.startsWith("/") ? id.slice(1) : id) } // Commit the changes