# Add test for listGitBranches from worktree cwd · pingdotgg/t3code

[View on GitCafe](https://git.cafe/pingdotgg/t3code/commit/647449069dc5348b1dffe406b71210d7c988b881)

Repository: [pingdotgg/t3code](https://git.cafe/pingdotgg/t3code)

Visibility: public

Requested revision: 647449069dc5348b1dffe406b71210d7c988b881

Requested commit: 647449069dc5348b1dffe406b71210d7c988b881

Commit: 647449069dc5348b1dffe406b71210d7c988b881

Tree: a43e5cf50104b8f8eae2e80705474c88cdbe5135

Author: Julius Marminge

Committer: Julius Marminge

## Message

```
Add test for listGitBranches from worktree cwd

Verifies that querying branches from a worktree directory correctly
reports the worktree's branch as current, while the main repo still
shows its own branch — the assumption the BranchToolbar fix relies on.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

```

## Parents

- [6ce773ff1e865de0f1eb8f790f840ac0351d94ef](https://git.cafe/pingdotgg/t3code/commit/6ce773ff1e865de0f1eb8f790f840ac0351d94ef?format=markdown)

[Source at this commit](https://git.cafe/pingdotgg/t3code/tree/647449069dc5348b1dffe406b71210d7c988b881?format=markdown)
