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

Versions of Git >= 2.11.1 implement a security change that prohibits git from following HTTP redirects. For Chipcode access, it's necessary for a client to follow an HTTP redirect as the client will be redirected to the closest regional mirror. To adjust to this, it's necessary to make a local git configuration change.

Execute the following command from the CLI:

This will add the following section to git's configuration:
[http "https://chipmaster2.qti.qualcomm.com"]
    followRedirects = true

If you would like more details on this, please reference this commit id in the source:

50d3413740d1da599cdc0106e6e916741394cc98     http: make redirects more obvious