Why do I say "cd" when updating Homebrew?

Since my last update of Homebrew (to 1.0.0) instead of just seeing

Checking out v1.0.1 in /usr/local/Homebrew...

when i brew updateor brew upgrade --allnow i see

Checking out v1.0.1 in /usr/local/Homebrew...
To checkout v1.0.1 in /usr/local/Homebrew run:
  'cd /usr/local/Homebrew && git checkout v1.0.1

Is this a mistake that I have to make something about? What's going on here? Updates for me fail?

+4
source share
1 answer

I had the same problem. Found a solution on this issue that is very similar to yours:

cd $(brew --prefix)/Homebrew && git fetch && git reset --hard origin/master

This seemed to be caused by a difference in the prefix and repository directories for homebrew.

+5
source

Source: https://habr.com/ru/post/1655473/


All Articles