docs: warn agents a slow git push is the pre-push hook, not a network hang#458
Merged
Conversation
d1817e8 to
e1bb75e
Compare
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
Adds a note in CLAUDE.md (Committing and Creating PRs) and
docs/git-workflow.md (Local Hooks) so future AI agents don't misdiagnose a
slow
git pushas a network/auth/HTTP-2 failure.Why:
make hooksinstalls apre-pushhook that runs the full bats/testsuite (several minutes) before the upload, with little output. Because the repo
is public,
git fetch/ls-remoteneed no auth and return instantly — so a slowpush can look network-specific when it's just the hook. The note explains how to
confirm with
GIT_TRACE=1 git pushand to usegit push --no-verifyonly whenmake check-allalready passed on the exact commit.Docs-only. Verified by pushing this branch with the hook enabled — it ran the
full bats suite (85/85 ok) and completed normally.
Test Plan
checkjob passes