You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
ran brew update and can still reproduce the problem?
ran brew doctor, fixed all issues and can still reproduce the problem?
-- not exactly, as the bug comes from doctor
ran brew config and brew doctor and included their output with your issue?
What you were trying to do (and why)
running brew doctor to check my configuration for errors.
The git repositories had been switched from http to ssh protocol (fetch and push) by accident (automated action done by Sourcetree).
What happened (include command output)
It suggested I set my remote origin to a URL that had an extra https://github.com/ preppended to it.
Command output
$ brew doctor
Please note that these warnings are just used to help the Homebrew maintainers
with debugging if you file an issue. If everything you use Homebrew for is
working fine: please don't worry or file an issue; just ignore this. Thanks!
With a non-standard origin, Homebrew won't update properly.
You can solve this by setting the origin remote:
git -C "/usr/local/Homebrew" remote set-url origin https://github.com/https://github.com/Homebrew/brew
What you expected to happen
I would have expected either this not to be a warning in brew doctor or for a correct URL to have been provided in the warning.
For example: git -C "/usr/local/Homebrew" remote set-url origin https://github.com/Homebrew/brew
Checklist
brew update
and can still reproduce the problem?brew doctor
, fixed all issues and can still reproduce the problem?-- not exactly, as the bug comes from doctor
brew config
andbrew doctor
and included their output with your issue?What you were trying to do (and why)
running
brew doctor
to check my configuration for errors.The git repositories had been switched from
http
tossh
protocol (fetch
andpush
) by accident (automated action done by Sourcetree).What happened (include command output)
It suggested I set my remote origin to a URL that had an extra
https://github.com/
preppended to it.Command output
What you expected to happen
I would have expected either this not to be a warning in
brew doctor
or for a correct URL to have been provided in the warning.For example:
git -C "/usr/local/Homebrew" remote set-url origin https://github.com/Homebrew/brew
Step-by-step reproduction instructions (by running
brew
commands)$ git -C "/usr/local/Homebrew" remote set-url origin ssh://git@github.com/Homebrew/brew
$ brew doctor
Output of
brew config
andbrew doctor
commandsGit config file for example from brew repository:
Relevant line of code with instructions:
brew/Library/Homebrew/diagnostic.rb
Line 133 in abfb5b1
The text was updated successfully, but these errors were encountered: