Configure git proxy settings and prefer http(s) protocol

Set a proxy for http protocol usage by git, and switch to using
the https:// protocol in preference to git:// to make it easier
to clone from behind firewalls.

Change-Id: I41e809c54f3065d59ca84d83be80b9472361dd9d
This commit is contained in:
Darragh Bailey 2012-12-05 17:28:52 +00:00
parent 7ccf5282ed
commit e1bc989c2c

View file

@ -7,4 +7,7 @@ set -e
set -o xtrace set -o xtrace
apt-get -y install git apt-get -y install git
sudo -Hiu stack git clone git://github.com/tripleo/demo.git if [ -n "$http_proxy" ]; then
sudo -Hiu stack git config --global http.proxy $http_proxy
fi
sudo -Hiu stack git clone https://github.com/tripleo/demo.git