Repository navigation
fix(pr): keep older contributor worktree checkouts within OS argument limits - #129169
Merged
Merged
Conversation
Contributor
|
🦞👀 Pull request received. I will update this pull request when review starts. |
steipete
marked this pull request as ready for review
August 25, 2026 08:46
Contributor
Author
|
Merged via squash.
|
github-actions Bot
pushed a commit
to Desicool/openclaw
that referenced
this pull request
Aug 26, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Related: #120114
What Problem This Solves
Fixes an issue where maintainers reviewing older contributor pull requests could not check out the contributor branch when the intervening changes exceeded the operating system's command-line argument limit. PR #120114 reproduced the failure with 20,667 changed paths and an
Argument list too longerror, leaving its valid review-transition journal unrecoverable through the native maintainer workflow.Why This Change Was Made
Keep recovery at its existing journal owner and stream NUL-delimited filenames to Git instead of expanding every filename into the shell argument list. Git's literal-pathspec mode preserves the previous literal-filename contract, and existing foreign-state, ignored-file, reserved-artifact, interrupted-transition, and exact-tree guards remain unchanged.
User Impact
No end-user product behavior changes. Maintainers can review and land older contributor branches without hitting platform argument limits or weakening worktree-containment safeguards.
Evidence
Argument list too long; after the change, the same regression passes with bounded arguments and a literal wildcard-containing filename.node scripts/run-vitest.mjs test/scripts/pr-worktree-containment.test.ts --run: 12 passed.pnpm exec oxfmt --check scripts/pr-lib/worktree.sh test/scripts/pr-worktree-containment.test.ts,bash -n scripts/pr-lib/worktree.sh, andgit diff --checkpassed.