homebrew-core is a shallow clone.

01/06 16:17
阅读数 3.3K

问题如下

Castor-MacBook:~ admin$ brew update
Error: 
  homebrew-core is a shallow clone.
To `brew update`, first run:
  git -C /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core fetch --unshallow
This restriction has been made on GitHub's request because updating shallow
clones is an extremely expensive operation due to the tree layout and traffic of
Homebrew/homebrew-core and Homebrew/homebrew-cask. We don't do this for you
automatically to avoid repeatedly performing an expensive unshallow operation in
CI systems (which should instead be fixed to not use shallow clones). Sorry for
the inconvenience!
Castor-MacBook:~ admin$ git -C /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core fetch --unshallow
fatal: 哑 http 传输不支持 shalllow 能力

使用简单的命令把homebrew的核心删了, 然后再更新, 问题解决

rm -rf /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core;
brew update

 

 

展开阅读全文
打赏
0
0 收藏
分享
加载中
更多评论
打赏
0 评论
0 收藏
0
分享
返回顶部
顶部