Prevent LFS hook failures during safe-output bundle creation - #56499
Conversation
Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
|
Lean already. Ship. Warning Firewall blocked 4 domainsThe following domains were blocked by the firewall during workflow execution:
[!TIP] tools:
github:
mode: gh-proxySee GitHub Tools for more information on To allow these domains, add them to the network:
allowed:
- defaults
- "ab.chatgpt.com"
- "api.github.com"
- "chatgpt.com"
- "github.com"See Network Configuration for more information.
|
|
✅ Test Quality Sentinel completed test quality analysis. No test files were added or modified in this PR. Test Quality Sentinel skipped.
|
|
🧠 Matt Pocock Skills Reviewer has completed the skills-based review. ✅
|
|
✅ PR Code Quality Reviewer completed the code quality review. Reviewed PR #56499: no actionable issues found in the one-line hook-isolation change, so no review comments or blocking review were needed.
|
|
✅ Design Decision Gate 🏗️ completed the design decision gate check. See the comment below for the result and any generated ADR draft. No ADR enforcement needed: PR does not have the implementation label and has ≤100 new lines of code in business logic directories.
|
Comment MemoryNote This comment is managed by comment memory.It stores persistent context for this thread in the code block at the top of this comment.
|
There was a problem hiding this comment.
Pull request overview
Prevents repository hooks from affecting filtered safe-output bundle creation.
Changes:
- Applies the temporary
core.hooksPathoverride togit bundle create.
Show a summary per file
| File | Description |
|---|---|
actions/setup/js/generate_git_bundle.cjs |
Isolates bundle creation from repository hooks. |
Review details
💡 Add a code-review agent skill for context-aware, tailored reviews. Learn more in the docs.
- Files reviewed: 1/1 changed files
- Comments generated: 1
- Review effort level: Balanced
| execGitSync([...noHooksArgs, "worktree", "add", "--detach", tempWorktree, baseCommitSha], { cwd }); | ||
| execGitSync([...noHooksArgs, "am", "--3way", patchResult.patchPath], { cwd: tempWorktree }); | ||
| execGitSync(["bundle", "create", bundlePath, `${baseCommitSha}..HEAD`], { cwd: tempWorktree }); | ||
| execGitSync([...noHooksArgs, "bundle", "create", bundlePath, `${baseCommitSha}..HEAD`], { cwd: tempWorktree }); |
There was a problem hiding this comment.
Skills-Based Review 🧠
Applied /diagnosing-bugs — this is a clean, minimal bug fix.
The single-line change correctly extends the noHooksArgs guard to bundle create, matching the existing pattern already applied to worktree add and git am on the preceding lines. Root cause is properly addressed, not just the symptom.
📋 Assessment
- ✅ Fix is consistent with the established
noHooksArgspattern in this function - ✅ All three git operations in the
tryblock (worktree add,am,bundle create) now share the same hook isolation - i️ No regression test added — acceptable here since this is a CJS GitHub Actions helper with no visible test harness in the diff
🧠 Reviewed using Matt Pocock's skills by Matt Pocock Skills Reviewer · copilot · sonnet46 · 13 AIC · ⌖ 10.3 AIC · ⊞ 7.6K
Comment /matt to run again
There was a problem hiding this comment.
The fix looks correct. git bundle create was the only git call in this block missing ...noHooksArgs, which could cause LFS (or other) hooks to fire and fail during bundle creation. Adding the spread is consistent with the surrounding worktree add and am calls and closes the gap cleanly.
🧵 Reviewed using Impeccable skills by Impeccable Skills Reviewer · copilot · sonnet46 · 15.7 AIC · ⌖ 10.5 AIC · ⊞ 6.2K
|
🎉 This pull request is included in a new release. Release: |
Filtered safe-output bundle generation could fail when repositories configure Git LFS or other repository hooks unavailable in the safe-output environment.
core.hooksPathoverride togit bundle create, matching the existingworktreeandgit amoperations.