Skip to content

fix: inspect Git worktree status - #159

Merged
chenjiahan merged 1 commit into
mainfrom
chenjiahan/fix-bare-git-detection
Aug 9, 2026
Merged

chenjiahan merged 1 commit into
mainfrom
chenjiahan/fix-bare-git-detection

Conversation

@chenjiahan

Copy link
Copy Markdown
Member

git rev-parse --is-inside-work-tree exits successfully while printing false inside a bare repository, which caused project creation to skip git init.

This PR checks the command output before reusing a worktree and adds coverage for both true and false results.

Related Links

@chenjiahan
chenjiahan merged commit c98bc04 into main Aug 9, 2026
4 checks passed
@chenjiahan
chenjiahan deleted the chenjiahan/fix-bare-git-detection branch August 9, 2026 09:10
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