Skip to content

fix(git): Give the branch-current fetch a 24 second limit - #6190

Merged
dan-petty merged 2 commits into
mainfrom
fix/4969-branch-current-hook-refuses-a-slow-fetch
Nov 17, 2026
Merged

dan-petty merged 2 commits into
mainfrom
fix/4969-branch-current-hook-refuses-a-slow-fetch

Conversation

@dan-petty

@dan-petty dan-petty commented Nov 17, 2026 •

Copy link
Copy Markdown
Owner

The branch-current pre-push hook stops its fetch of origin/main after 20 seconds. A loaded devcontainer needs longer, so the hook refuses a push of a current branch and says that origin is unavailable. The fetch now has 24 seconds, the most that keeps the pre-push limits (24 + 40 + 30) plus the 25 second rest of the push below the 120 second agent shell budget. A status 124 names that limit instead of an unavailable origin.

Closes #4969

Change: openspec/changes/archive/2026-11-17-4969-branch-current-hook-refuses-a-slow-fetch/

@dan-petty dan-petty added type/bug Type bug: the code does not do what it must scope/git Git commands, git configuration, and git credential handling labels Nov 17, 2026
@dan-petty
dan-petty force-pushed the fix/4969-branch-current-hook-refuses-a-slow-fetch branch from 9e417aa to f0dc3bc Compare November 17, 2026 16:58
@dan-petty dan-petty changed the title fix(git): Give the branch-current fetch a 45 second limit fix(git): Give the branch-current fetch a 24 second limit Nov 17, 2026
@dan-petty
dan-petty marked this pull request as ready for review November 17, 2026 17:07
@dan-petty
dan-petty merged commit a116fa2 into main Nov 17, 2026
25 of 26 checks passed
@dan-petty
dan-petty deleted the fix/4969-branch-current-hook-refuses-a-slow-fetch branch November 17, 2026 17:10
dan-petty pushed a commit that referenced this pull request Nov 17, 2026
🤖 I have created a release *beep* *boop*
---


##
[0.173.3](v0.173.2...v0.173.3)
(2026-11-17)


### Bug Fixes

* **ci:** Let npm audit ignore a no-fix finding until a date
([#6205](#6205))
([b1a0266](b1a0266))
* **ci:** Show the row name in every gate row line
([#6188](#6188))
([319cdb8](319cdb8))
* **git:** Give the branch-current fetch a 24 second limit
([#6190](#6190))
([a116fa2](a116fa2))
* **github:** Retry a timed-out gh auth token lookup
([#6201](#6201))
([ffa602f](ffa602f))
* **roadmap:** Keep the alternatives result in the body block only
([#6208](#6208))
([6cb6e23](6cb6e23))
* **roadmap:** Leave other job comments out of the alternatives request
([#6192](#6192))
([e6f5718](e6f5718))
* **roadmap:** One plan-state comment for each plan PR
([#6209](#6209))
([32a0df2](32a0df2)),
closes [#6197](#6197)

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).

Co-authored-by: dan-petty-release[bot] <346998822+dan-petty-release[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

scope/git Git commands, git configuration, and git credential handling type/bug Type bug: the code does not do what it must

Projects

None yet

Development

Successfully merging this pull request may close these issues.

fix(git): the branch-current hook refuses a push on a slow fetch

1 participant