Upgrade from within China fails due to git issues

Does passing the proxy environment variables in the app.yml under the env section make it work?
And here is a solution for Rubygem under GFW: