fix: use relative paths when adding files to git

This commit is contained in:
James Murdza 2024-11-17 16:56:07 -05:00
parent 07d3802baa
commit ed8c970e16

View File

@ -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