GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | |||||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | |||||||||||||||
GeezerVison is showing github.com — [fix] Add git worktree support for ratchet functionality by kevinburkesegment · Pull Request #2779 · diffplug/spotless Conversation
Contributor
Git ratchet functionality failed in worktree directories with "Cannot find git repository in any parent directory" because JGit's RepositoryCache.FileKey.isGitRepository() doesn't properly recognize worktree git directories. Worktrees have a different structure where some files (objects, refs, etc.) are shared via a commondir file pointing to the main repository. This commit adds a custom isGitRepository() method that detects worktrees by checking for the commondir file and validates them appropriately. Also adds comprehensive test coverage for worktree support. Fixes #2728 Please DO NOT FORCE PUSH. Don't worry about messy history, it's easier to do code review if we can tell what happened after the review, and force pushing breaks that. Please make sure that your PR allows edits from maintainers. Sometimes it's faster for us to just fix something than it is to describe how to fix it. After creating the PR, please add a commit that adds a bullet-point under the
If your change only affects a build plugin, and not the lib, then you only need to update the If your change affects lib in an end-user-visible way (fixing a bug, updating a version) then you need to update This makes it easier for the maintainers to quickly release your changes :)
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page. All reactions
All reactions
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page.
This comment was marked as spam.
This comment was marked as outdated.
This comment was marked as spam.
This comment was marked as abuse.
Member
All reactions
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page.
All reactions
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page.
Contributor
Author
All reactions
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page.
Member
All reactions
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page.
Member
All reactions
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page. Git ratchet functionality failed in worktree directories with "Cannot find git repository in any parent directory" because JGit's RepositoryCache.FileKey.isGitRepository() doesn't properly recognize worktree git directories. Worktrees have a different structure where some files (objects, refs, etc.) are shared via a commondir file pointing to the main repository. This commit adds a custom isGitRepository() method that detects worktrees by checking for the commondir file and validates them appropriately. Also adds comprehensive test coverage for worktree support. Fixes diffplug#2728 Co-Authored-By: Claude <[email protected]>
kevinburkesegment
force-pushed
the
worktree-patch
branch
from
a5eaa5d to
cdafb28
Compare
|
There was an error while loading. Please reload this page.
apologies, I just reread this after force pushing. I will do patches The force push just rebased against what's currently on main and then resolved the conflicts in CHANGES.md, no changes to the code. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
Sorry @nedtwigg or others, I think I need your help to trigger a CI run for this build. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
lol, needs a |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
I ran the tests on c21049f locally with Java 21 and got passes |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
sorry, looks like the maven is still failing |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
spotless/.github/workflows/ci.yml Line 69 in 4a59207
|
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
|
Huzzah! Merged, release on the way! |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
Git ratcheting causes exception to be thrown when using git worktrees
There was an error while loading. Please reload this page.