Skip to content

fix(doctor): account for worktree context#17

Merged
AndrewADev merged 1 commit into
mainfrom
fix/doctor/worktree-failure
Apr 26, 2026
Merged

fix(doctor): account for worktree context#17
AndrewADev merged 1 commit into
mainfrom
fix/doctor/worktree-failure

Conversation

@AndrewADev
Copy link
Copy Markdown
Owner

@AndrewADev AndrewADev commented Apr 26, 2026

Make sure the doctor command can correctly recognize git repo in a worktree context.

Previously, running bight doctor from a worktree context lead to messages like this:

$ bight doctor
bight doctor:
  [fail] git repo: .git/hooks/ not found — are you in a git repo?
  [fail] config: failed to load .bight.yml — file does not exist
  [info] hook: not installed — run `bight install` to automate on checkout
  [warn] skipping env file and var checks — config could not be loaded
Error: one or more checks failed

Now it correctly recognizes that it is in a git repo:

$ bight doctor
bight doctor:
  [ok]   git repo detected
  [fail] config: failed to load .bight.yml — file does not exist
  [info] hook: not installed — run `bight install` to automate on checkout
  [warn] skipping env file and var checks — config could not be loaded
Error: one or more checks failed

Make sure the `doctor` command can correctly recognize a worktree context.
@AndrewADev AndrewADev marked this pull request as ready for review April 26, 2026 17:29
@AndrewADev AndrewADev merged commit 4370b6e into main Apr 26, 2026
2 checks passed
@AndrewADev AndrewADev deleted the fix/doctor/worktree-failure branch April 26, 2026 17:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant