Skip to content

[BUG] [Server Error] [Worktree] ❌ List branches failed #175

@sandervspl

Description

@sandervspl

I get the following error when I start up the app

  1. npm install
  2. npm run dev
  3. select option 2 (Electron)
[1] [Server Error] [Worktree] ❌ List branches failed: Error: Command failed: git rev-parse --abbrev-ref HEAD
[1] fatal: not a git repository (or any of the parent directories): .git
[1] 
[1]     at genericNodeError (node:internal/errors:983:15)
[1]     at wrappedFn (node:internal/errors:537:14)
[1]     at ChildProcess.exithandler (node:child_process:414:12)
[1]     at ChildProcess.emit (node:events:518:28)
[1]     at maybeClose (node:internal/child_process:1101:16)
[1]     at Socket.<anonymous> (node:internal/child_process:456:11)
[1]     at Socket.emit (node:events:518:28)
[1]     at Pipe.<anonymous> (node:net:351:12) {
[1]   code: 128,
[1]   killed: false,
[1]   signal: null,
[1]   cmd: 'git rev-parse --abbrev-ref HEAD',
[1]   stdout: '',
[1]   stderr: 'fatal: not a git repository (or any of the parent directories): .git\n'
[1] }
[1] [Server] POST /api/worktree/list-branches 500

I have gh installed (latest version), claude code (latest version) and I have set my claude API key with export ANTHROPIC_API_KEY=sk-ant-xxx

Metadata

Metadata

Assignees

Labels

BugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions