From e1bc989c2cfb30b7b9705a621048bffedfeb887a Mon Sep 17 00:00:00 2001 From: Darragh Bailey Date: Wed, 5 Dec 2012 17:28:52 +0000 Subject: [PATCH] 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 --- flavours/devstack/install.d/52-image-toolchain | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/flavours/devstack/install.d/52-image-toolchain b/flavours/devstack/install.d/52-image-toolchain index 46c19d13..6adc6884 100755 --- a/flavours/devstack/install.d/52-image-toolchain +++ b/flavours/devstack/install.d/52-image-toolchain @@ -7,4 +7,7 @@ set -e set -o xtrace 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