fix: use relative paths when adding files to git
This commit is contained in:
parent
07d3802baa
commit
ed8c970e16
@ -57,7 +57,7 @@ export class SecureGitClient {
|
|||||||
|
|
||||||
// Add files to the repository
|
// Add files to the repository
|
||||||
for (const { id, data } of fileData) {
|
for (const { id, data } of fileData) {
|
||||||
await git.add(id)
|
await git.add(id.startsWith("/") ? id.slice(1) : id)
|
||||||
}
|
}
|
||||||
|
|
||||||
// Commit the changes
|
// Commit the changes
|
||||||
|
Loading…
x
Reference in New Issue
Block a user