原始brewupdate错误需要运行gitfetch–unshallow,但又出现了另一个git致命错误
$ 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
我试图运行上面的命令:git ... --unshallow
但我遇到了另一个错误:
fatal: dumb http transport does not support shallow capabilities
$ brew -v
Homebrew 2.6.0-104-g24f7898
Homebrew/homebrew-core (git revision b1ef15; last commit 2020-12-05)
Homebrew/homebrew-cask (git revision 443e7; last commit 2020-08-27)
任何人都可以帮忙吗?
回答
在尝试处理 git repo 后,我挖了一些,但为我修复它的最简单的事情是 untapping 然后重新包装 casks repo
brew untap homebrew/cask
brew tap homebrew/cask
这让一切重新井然有序。
我最近没有使用 RTFM,但我猜这与 casks 似乎如何进入主自制软件仓库有关(或者至少作为一个天真的用户看起来是这样)。
- Solved an issue for me. Thx!
回答
我试着跑:
$ git -C "/usr/local/Homebrew/Library/Taps/homebrew/homebrew-core" fetch
然后:
$ git -C "/usr/local/Homebrew/Library/Taps/homebrew/homebrew-core" fetch --unshallow
brew update 现在看起来还可以。
- For other users tryining to use this tip, please have some patience if your terminal is not responding. 1 minute was the waiting time on my system for each line.
THE END
二维码