I tried to install something using brew install
and this thing pops up
Warning: homebrew/core is shallow clone. To get complete history run:
git -C "$(brew --repo homebrew/core)" fetch --unshallow
and when I copied that thing to make it run, this happens
fish: $(...) is not supported. In fish, please use '(brew)'.
git -C "$(brew --repo homebrew/core)" fetch --unshallow
^
What does it means and how can I fix these things? Is there's a workaround to ignore or fix?
Additional information about my workstation:
- MacOS Mojave
- Homebrew version 2.0.2
- Does run
brew doctor
and it shows up as no problem - Using Fish shell (of course I do)
Update 1 :
It looks like I am an idiot leaving the $
there.
I did try to fix it with you guys suggestions, and this what happened.
Removing the $
from the command, like so
git -C "(brew --repo homebrew/core)" fetch --unshallow
and this happens
fatal: cannot change to '(brew --repo homebrew/core)': No such file or directory
Update 2 :
Also, @VonC asked me did brew --repo homebrew/core
path exists by asking me to run these following line
brew --repo homebrew/core
and it comes up as this
/usr/local/Homebrew/Library/Taps/homebrew/homebrew-core
which indicates that the repository path is still valid and ready to use