Skip to content

Commit 8dcddb4

Browse files
committed
initialize gitIgnoreController correctly
1 parent d74a9b1 commit 8dcddb4

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/core/task/Task.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -344,13 +344,18 @@ export class Task extends EventEmitter<TaskEvents> implements TaskLike {
344344
this.taskNumber = -1
345345

346346
this.rooIgnoreController = new RooIgnoreController(this.cwd)
347+
this.gitIgnoreController = new GitIgnoreController(this.cwd)
347348
this.rooProtectedController = new RooProtectedController(this.cwd)
348349
this.fileContextTracker = new FileContextTracker(provider, this.taskId)
349350

350351
this.rooIgnoreController.initialize().catch((error) => {
351352
console.error("Failed to initialize RooIgnoreController:", error)
352353
})
353354

355+
this.gitIgnoreController.initialize().catch((error) => {
356+
console.error("Failed to initialize GitIgnoreController:", error)
357+
})
358+
354359
this.apiConfiguration = apiConfiguration
355360
this.api = buildApiHandler(apiConfiguration)
356361
this.autoApprovalHandler = new AutoApprovalHandler()

0 commit comments

Comments
 (0)