We are working on a project in which all the dev environments are running Ubuntu 14.04 instances using Vagrant. Our CI build and deployment servers are running RHEL 6.5. We are using DUO to build Nodejs components and at build time, we programmatically clone dependencies from git urls. We have found this works all the time on Ubuntu, but hangs on RHEL. When we looked more closely, we found a problem with the following command:
git ls-remote --tags --heads https://<username>:<authtoken>@github.com/<path-to-repo>
This returns no data when it is run on our build server instances but works fine on our Ubuntu.
To debug, I used an RHEL instance in the cloud and found I could fix the problem by upgrading from the 1.7.x version of git that comes OTB with RHEL to 1.9.4. But that did not work on the build instances. I cannot see any difference in the git config for the two instances. Since I don't have regular access to the build servers, I found a Centos image where I could reproduce the problem. I have stripped down the git config settings on that and on my ubuntu image so they are identical. I cannot see what is causing the problem.
Any ideas?