diff --git a/centos7-system-install.sh b/centos7-system-install.sh index b630c72..79816a3 100644 --- a/centos7-system-install.sh +++ b/centos7-system-install.sh @@ -13,8 +13,13 @@ registry = "https://github.com/rust-lang/crates.io-index" replace-with = 'ustc' [source.ustc] registry = "git://mirrors.ustc.edu.cn/crates.io-index" +# 如果所处的环境中不允许使用 git 协议,可以把上面的地址改为 #registry = "https://mirrors.ustc.edu.cn/crates.io-index" -EOF + +[net] +git-fetch-with-cli = true + +EOF # docker加速 mkdir -p /etc/docker