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:
parent
7ccf5282ed
commit
e1bc989c2c
1 changed files with 4 additions and 1 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue