Document gh pr create workaround for restricted fetch refspecs - #89
Merged
Merged
Conversation
Gardener-managed (and similarly restricted) clones can have origin's fetch refspec limited to the default branch only, which leaves no remote-tracking ref for feature branches even after a successful git push -u, causing gh pr create to fail with "you must first push the current branch to a remote". Document the --head <branch> workaround in Edge cases so every generated skill picks it up. Closes #88 Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Member
Author
|
Self-review rubric:
Summary: small, low-risk, well-grounded addition (the failure it documents was directly observed, not hypothesized). Leaving open for human merge rather than auto-merging, both because the fixture anchor is UNVERIFIED this cycle and because |
4 tasks
dmccoystephenson
added a commit
that referenced
this pull request
Aug 3, 2026
Gardener-managed (and similarly restricted) clones can have origin's fetch refspec limited to the default branch only, which leaves no remote-tracking ref for feature branches even after a successful git push -u, causing gh pr create to fail with "you must first push the current branch to a remote". Document the --head <branch> workaround in Edge cases so every generated skill picks it up. Closes #88 Co-authored-by: Claude Sonnet 5 <noreply@anthropic.com>
8 tasks
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.
Summary
create-dev-loop.mddocumenting a workaround for agh pr createfailure seen in gardener-managed (and similarly restricted) clones: whenorigin's fetch refspec is limited to the default branch only,git fetchnever populates a remote-tracking ref for feature branches, sogh pr createandgit branch --set-upstream-toboth fail their auto-detection even after a successfulgit push -u. The fix: pass--head <branch>explicitly.<slug>-dev-loopskill going forward, since the failure mode is environmental (restricted clone), not repo-specific.Closes #88
Deferred (this cycle)
Three other open issues were triaged and intentionally left untouched:
CLAUDE.md, which this loop treats as agent-loaded config requiring explicit human authorization to edit.create-dev-loop-dev-loop's own configuration (self-audit tracker repo doesn't exist) — Phase 9 forbids implementing changes to the skill itself; a human must review and approve skill edits.CLAUDE.mdedit for the same reason.Research grounding
This is a mechanical process/edge-case fix (a
ghCLI behavior workaround), not a change to a phase definition or the core template logic — noRESEARCH.mdfinding applies.Test plan
python3 scripts/check_docs.pypasses (placeholder/table/link consistency).{{placeholder}}was introduced (plain prose addition), so no Step 4 substitution-table row is needed./create-dev-loopfixture regeneration against a reference repo (e.g.dpm-dev-loop) was not run: the harness sandbox for this session denies filesystem access outside this repo's working directory (~/local-skillsis blocked), so the external validation anchor cannot run this cycle. Since this PR modifies template surface (create-dev-loop.md), full validation is required per this loop's own gating rules — flagging UNVERIFIED and not auto-merging.create-dev-loop.mdis also already on the do-not-auto-merge path list (any template change deserves careful human review), so this is consistent either way. A human (or a session with unrestricted filesystem access) should run the Step 1-5 regeneration against a fixture repo and confirm the new Edge-case text renders correctly before merging.Self-audit followup
Filed #90 during this cycle's Phase 9 self-audit: Phase 4's anchor-cannot-run guidance doesn't name session-sandbox path restriction (the case hit in this very PR's validation) as a trigger alongside "tool/interpreter absent or broken".
🤖 Generated with Claude Code
This PR description was drafted during a Gardener session (Stephenson-Software/gardener).