error: RPC failed; HTTP 500 curl 22 The requested URL returned error: 500 Internal Server Error

问题描述

Git >= 2.11.1 版本实施了一项安全更改,禁止 Git 跟踪 HTTP 重定向。对于 Chipcode 访问,客户端必须遵循 HTTP 重定向,因为客户端将被重定向到最近的区域镜像。要适应这一点,有必要进行本地 git 配置更改。

解决方案

 执行以下命令:

git config --global http."https://chipmaster2.qti.qualcomm.com".followRedirects true

这会将以下部分添加到 git 的配置中: 

[http "https://chipmaster2.qti.qualcomm.com"]
    followRedirects = true

如果您想了解更多详情,请在源代码中引用此提交 ID:

50d3413740d1da599cdc0106e6e916741394cc98     http: make redirects more obvious