RUN  v4.1.1 /home/sawyer/projects/bb/.claude/worktrees/wf_242c3e11-a10-18/packages/host-workspace ❯  @bb/host-workspace  test/git-bare-layout-1595.test.ts (4 tests | 3 failed) 166ms  × readGitRepositoryState() reports has_commits for the bare root 43ms  × getCheckoutRef() does not report 'not a git repository' 35ms  × createWorktree() can add a worktree from the bare root 39ms ⎯⎯⎯⎯⎯⎯⎯ Failed Tests 3 ⎯⎯⎯⎯⎯⎯⎯  FAIL   @bb/host-workspace  test/git-bare-layout-1595.test.ts > bare repo + worktrees layout (#1595) > readGitRepositoryState() reports has_commits for the bare root AssertionError: expected 'not_git' to be 'has_commits' // Object.is equality Expected: "has_commits" Received: "not_git"  ❯ test/git-bare-layout-1595.test.ts:64:48  62| const { root } = await initBareLayout();  63| // FAILS on 16ceb3a54: returns "not_git".  64| expect(await readGitRepositoryState(root)).toBe("has_commits");  | ^  65| });  66| ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯[1/3]⎯  FAIL   @bb/host-workspace  test/git-bare-layout-1595.test.ts > bare repo + worktrees layout (#1595) > getCheckoutRef() does not report 'not a git repository' AssertionError: expected 'unknown' not to be 'unknown' // Object.is equality  ❯ test/git-bare-layout-1595.test.ts:73:31  71| // This is exactly what host.list_branches returns to the app, whi…  72| // disables "New worktree" in the environment picker.  73| expect(checkout.kind).not.toBe("unknown");  | ^  74| });  75| ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯[2/3]⎯  FAIL   @bb/host-workspace  test/git-bare-layout-1595.test.ts > bare repo + worktrees layout (#1595) > createWorktree() can add a worktree from the bare root AssertionError: promise rejected "WorkspaceError: Cannot create a worktree … { code: '…' }" instead of resolving  ❯ test/git-bare-layout-1595.test.ts:89:6  87| timeoutMs: 60_000,  88| }),  89| ).resolves.toEqual({ path: targetPath });  | ^  90| });  91| }); Caused by: WorkspaceError: Cannot create a worktree because the source is not a Git repository: /tmp/bb-1595-PUf3Cw/cosmos. Initialize it and create at least one commit, then try again.  ❯ createWorktree src/provisioning.ts:348:13  ❯ test/git-bare-layout-1595.test.ts:81:5 ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯ Serialized Error: { code: 'not_git_repo' } ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯[3/3]⎯  Test Files  1 failed (1)  Tests  3 failed | 1 passed (4)  Start at  07:39:00  Duration  611ms (transform 226ms, setup 0ms, import 362ms, tests 166ms, environment 0ms)