Skip to content

fix(server create): tolerate non-git cwd when checking work tree#88

Merged
pascal-klesse merged 1 commit into
mainfrom
cursor/fix-server-create-git-check
May 19, 2026
Merged

fix(server create): tolerate non-git cwd when checking work tree#88
pascal-klesse merged 1 commit into
mainfrom
cursor/fix-server-create-git-check

Conversation

@pascal-klesse
Copy link
Copy Markdown
Member

Summary

  • Fixes lt server create (including --next) aborting after a successful template clone when run outside a git repository
  • git rev-parse --is-inside-work-tree now treats exit code 128 as "not in a work tree" instead of failing the command

Test plan

  • npm test (pre-push hook)
  • Run lt server create bp-api --next --noConfirm from a directory that is not a git repo and confirm it completes with next steps printed
  • Run the same command from inside an existing git repo and confirm behavior is unchanged (no nested git init unless --git is set)

`git rev-parse --is-inside-work-tree` exits 128 outside a repo and aborted
`lt server create` after a successful template clone; treat that as false.
@pascal-klesse pascal-klesse merged commit 72b00f9 into main May 19, 2026
1 check passed
@pascal-klesse pascal-klesse deleted the cursor/fix-server-create-git-check branch May 19, 2026 10:18
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