. Advertisement .
..3..
. Advertisement .
..4..
How to remove the shallow clone warning from HomeBrew? I get the following error message:
➜ ~ brew info test
Error: No available formula with the name "test"
==> Searching for a previously deleted formula...
Warning: homebrew/core is shallow clone. To get complete history run:
git -C "$(brew --repo homebrew/core)" fetch --unshallow
Error: No previously deleted formula found.
When I try to change the remote git address to mirror homebrew homebrew prior to. Can someone give me some good tips?
The cause: Because Homebrew no longer makes shallow clones when installed, and from December 2020, upgrading existing shallow clones is not permitted.
Perhaps the issue is related to changing the git remote address to the homebrew mirror location previously.
Solution:
In most situations, the warning can be safely ignored because the formulae being sought are unlikely to exist.
However, if you’re seeking certain formulae that may have existed in the past, simply follow the instructions.
Run the following commands to acquire a complete history:
Homebrew has stopped creating shallow copies when it is installed. Additionally, updating shallow clones that are already in use is now.
This makes it moot to ask about silencing the warning.
A message with text such as the following will be displayed if a shallow clone has been configured
It is now necessary to execute the unshallow process. To do this, run the
git
command(s), as shown in the error message.Notification: If feedback is not provided, this process can take quite a while to complete.
You can find more information about this change in the discussion on Homebrew’s GitHub page.
–gromgit December 5, 2020, 12:29 PM EST
Also, this additional text was added to error message: