Skip to content

fix(gitter): update origin/HEAD during fetch and skip reclone on 401 - #6070

Merged
Ly-Joey merged 1 commit into
google:masterfrom
Ly-Joey:fix-gitter-even-less-reclone
Sep 28, 2026
Merged

Ly-Joey merged 1 commit into
google:masterfrom
Ly-Joey:fix-gitter-even-less-reclone

Conversation

@Ly-Joey

@Ly-Joey Ly-Joey commented Sep 28, 2026

Copy link
Copy Markdown
Contributor

Turns out there's a git config that keeps remote/origin/HEAD tracking that of the upstream at git fetch time. (Currently done with a separate git remote set-head --auto)
Updating our fetchRepo function to use this will effectively halve our network calls!

Also, we should not reclone as a fallback when encountering a 401 (Unauthorized) error.

@Ly-Joey
Ly-Joey requested review from a team and michaelkedar September 28, 2026 01:25
@Ly-Joey
Ly-Joey enabled auto-merge (squash) September 28, 2026 01:27
@Ly-Joey
Ly-Joey merged commit 5179b85 into google:master Sep 28, 2026
23 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants