fix: better handling of gitignore (once)
This commit is contained in:
@@ -135,7 +135,7 @@ export class GitEngine {
|
||||
}
|
||||
|
||||
private async existingStageTargets(projectPath: string): Promise<string[]> {
|
||||
const targets = ['posts', 'media', 'meta', '.gitattributes'];
|
||||
const targets = ['posts', 'media', 'meta', 'thumbnails', '.gitattributes', '.gitignore'];
|
||||
const existing: string[] = [];
|
||||
|
||||
for (const target of targets) {
|
||||
@@ -383,6 +383,8 @@ export class GitEngine {
|
||||
}
|
||||
}
|
||||
|
||||
await this.ensureGitignore(projectPath);
|
||||
|
||||
const stageTargets = await this.existingStageTargets(projectPath);
|
||||
if (stageTargets.length === 0) {
|
||||
emitProgress('staging-files', 75, 'Staging project files...', 'no target files found');
|
||||
|
||||
Reference in New Issue
Block a user