fix(doctor): wire up CheckRedirectNotTracked and FixRedirectTracking
Completes the work from #813 by actually calling the new functions: - Add Check 14b in doctor.go for redirect file tracking detection - Add Redirect Not Tracked case in doctor_fix.go switch statement Without this wiring, bd doctor would not detect or fix already-tracked redirect files, only prevent new ones via the updated .gitignore template. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com> Executed-By: beads/crew/dave Rig: beads Role: crew
This commit is contained in:
@@ -412,6 +412,11 @@ func runDiagnostics(path string) doctorResult {
|
||||
result.Checks = append(result.Checks, issuesTrackingCheck)
|
||||
// Don't fail overall check for tracking issues, just warn
|
||||
|
||||
// Check 14b: Redirect file not tracked (worktree support)
|
||||
redirectCheck := convertWithCategory(doctor.CheckRedirectNotTracked(), doctor.CategoryGit)
|
||||
result.Checks = append(result.Checks, redirectCheck)
|
||||
// Don't fail overall check for redirect tracking, just warn
|
||||
|
||||
// Check 15: Git merge driver configuration
|
||||
mergeDriverCheck := convertWithCategory(doctor.CheckMergeDriver(path), doctor.CategoryGit)
|
||||
result.Checks = append(result.Checks, mergeDriverCheck)
|
||||
|
||||
@@ -225,6 +225,8 @@ func applyFixList(path string, fixes []doctorCheck) {
|
||||
switch check.Name {
|
||||
case "Gitignore":
|
||||
err = doctor.FixGitignore()
|
||||
case "Redirect Not Tracked":
|
||||
err = doctor.FixRedirectTracking()
|
||||
case "Git Hooks":
|
||||
err = fix.GitHooks(path)
|
||||
case "Daemon Health":
|
||||
|
||||
Reference in New Issue
Block a user