Repository navigation
Allow resetting Git remotes to their defaults - #24368
Conversation
- Preserve mirror remotes unless users explicitly select defaults. Fixes #24364
|
No actionable comments were generated in the recent review.
|
| Layer / File(s) | Summary |
|---|---|
Remote selection and reset behavior Library/Homebrew/cmd/update.sh, Library/Homebrew/test/cmd/update_spec.rb, docs/Installation.md |
The update script checks explicit brew and core remote settings, including settings equal to the defaults. Parameterised tests cover explicit and implicit defaults, non-default remotes, and regular and --auto-update runs. Installation guidance describes the behavior of unset mirror variables and gives commands to reset both remotes to their GitHub URLs. |
Priority:
Severity of issue fixed: Medium
Merge Risk: 
Minimal · up to 745e9
-
The change is mergeable after normal checks; no actionable remote-reset risk remains in the reviewed evidence.
Pre-merge checks: 
4
-
Full details: Linked Issues check
-
Explanation
Issue
#24364requires explicit default values to reset the local brew and core Git remotes while preserving mirror remotes when the variables are implicit.update.shnow checksHOMEBREW_USER_SET_VARSfor both remote variables. The update logic therefore applies an explicit default and retains an implicit default's existing remote.update_spec.rbtests explicit defaults, implicit defaults, non-default remotes, and both normal and--auto-updatepaths.
Full details: Out of Scope Changes check
-
Explanation
The changed files support the linked issue. The shell change implements explicit remote selection. The tests verify the reset and preservation behaviour. The installation documentation explains the behaviour and gives reset commands. No unrelated change is evidenced.
-
- Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.
Comment @coderabbitai help to get the list of available commands.
Preserve mirror remotes unless users explicitly select defaults.
Fixes #24364
brew benchmarkresults.brewcommands to reproduce the bug?brew lgtm(style, typechecking and tests) locally?Codex with GPT 6 Astra at Extra High effort, with local review and testing.