Use GIT_BASE environment variable
Use GIT_BASE variable to be consistent with: nodepool/elements/openstack-repos/extra-data.d/50-create-repo-list Change-Id: I2ae933aef62cb1f9009483406bb15405efaf4001
This commit is contained in:
parent
69567dadf6
commit
4a5e37d3ed
@ -28,6 +28,8 @@
|
|||||||
|
|
||||||
set -eu
|
set -eu
|
||||||
|
|
||||||
|
GIT_BASE=${GIT_BASE:-git://git.openstack.org}
|
||||||
|
|
||||||
# If the old cache exists, move it to the new name
|
# If the old cache exists, move it to the new name
|
||||||
function make_new_cache(){
|
function make_new_cache(){
|
||||||
local OLD_CACHE_BASE=$1
|
local OLD_CACHE_BASE=$1
|
||||||
@ -198,7 +200,7 @@ GIT_MANIFEST=$CACHE_BASE/${GIT_MANIFEST_CACHE_NAME}
|
|||||||
rm -f $GIT_MANIFEST
|
rm -f $GIT_MANIFEST
|
||||||
|
|
||||||
# Get source repositories for the target
|
# Get source repositories for the target
|
||||||
echo "devstack git /opt/git/openstack-dev/devstack git://git.openstack.org/openstack-dev/devstack.git" > $TMP_HOOKS_PATH/early-source-repository-config
|
echo "devstack git /opt/git/openstack-dev/devstack $GIT_BASE/openstack-dev/devstack.git" > $TMP_HOOKS_PATH/early-source-repository-config
|
||||||
for _SOURCEREPO in $(find $TMP_HOOKS_PATH -maxdepth 1 -name "early-source-repository-*" -not -name '*~'); do
|
for _SOURCEREPO in $(find $TMP_HOOKS_PATH -maxdepth 1 -name "early-source-repository-*" -not -name '*~'); do
|
||||||
get_repos_for_element $_SOURCEREPO
|
get_repos_for_element $_SOURCEREPO
|
||||||
done
|
done
|
||||||
|
Loading…
Reference in New Issue
Block a user