fix: initialisation for git updated

This commit is contained in:
hugo committed 2026-02-16 11:15:02 +01:00
1 parent 2e27df0d63
commit 0230010515
2 files changed
+26 -1

No files matched your search

+19 -1
View File
@@ -306,7 +306,24 @@ export class GitEngine {
}
}
const imagePatterns = ['*.png', '*.jpg', '*.jpeg', '*.gif', '*.webp', '*.svg', '*.avif', '*.heic'];
const imagePatterns = [
'*.png',
'*.jpg',
'*.jpeg',
'*.jpe',
'*.jfif',
'*.gif',
'*.webp',
'*.svg',
'*.avif',
'*.heic',
'*.heif',
'*.bmp',
'*.tif',
'*.tiff',
'*.ico',
'*.jxl',
];
const trackedPatterns = await this.readLfsTrackedPatterns(projectPath);
const patternsToTrack = imagePatterns.filter((pattern) => !trackedPatterns.has(pattern));
@@ -327,6 +344,7 @@ export class GitEngine {
} else {
emitProgress('staging-files', 75, 'Staging project files...', stageTargets.join(', '));
await git.add(stageTargets);
await git.add(['--renormalize', ...stageTargets]);
}
const hasCommit = await this.hasHeadCommit(git);