Skip to content

Use native git instead of JGit for worktree support#8

Merged
reid-spencer merged 1 commit into
mainfrom
feature/native-git-worktrees
Jan 23, 2026
Merged

Use native git instead of JGit for worktree support#8
reid-spencer merged 1 commit into
mainfrom
feature/native-git-worktrees

Conversation

@reid-spencer
Copy link
Copy Markdown
Contributor

Summary

  • Configure Git and DynamicVersioning helpers to use native git executable
  • Fixes JGit's inability to handle git worktrees (NoWorkTreeException)
  • Enables parallel development with multiple workers in separate worktrees

Changes

  • helpers/Git.scala - Added useReadableConsoleGit setting
  • helpers/DynamicVersioning.scala - Added useReadableConsoleGit setting

Test plan

  • Compiles successfully
  • Tested in synapify worktrees - workers can now run sbt compile

🤖 Generated with Claude Code

JGit doesn't properly handle git worktrees - it sees the .git file
(which points to the main repo's gitdir) as a bare repository and
throws NoWorkTreeException.

This change configures both Git and DynamicVersioning helpers to use
the native git executable via useReadableConsoleGit, which fully
supports worktrees and enables parallel development with multiple
Claude workers in separate worktrees.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@sonarqubecloud
Copy link
Copy Markdown

@reid-spencer reid-spencer merged commit a686a38 into main Jan 23, 2026
2 of 3 checks passed
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