diff --git a/src/services/gitService.ts b/src/services/gitService.ts index 530a7d7..0abc1e4 100644 --- a/src/services/gitService.ts +++ b/src/services/gitService.ts @@ -73,7 +73,7 @@ export class SimpleGitService implements GitService { async isPathCurrentlyTracked(path: string): Promise { const status = await this.gitProvider.status(); - return !status.not_added.includes(path); + return status.not_added.some((filePath) => filePath.startsWith(path)); } async isPathPreviouslyTracked(path: string): Promise {