Make shallow clone of repos to build iso

Change-Id: Ib187292fb4d11bc2bd7c764815f8b8c25170d1de
This commit is contained in:
Dmitry Borodaenko 2013-09-26 16:03:44 -07:00
parent 0aec3efd7b
commit 87fd623f05
2 changed files with 5 additions and 6 deletions

View File

@ -39,10 +39,10 @@ NO_UI_OPTIMIZE:=0
CACHE_RHEL:=0
# Repos and versions
FUELLIB_COMMIT?=origin/master
NAILGUN_COMMIT?=origin/master
ASTUTE_COMMIT?=origin/master
OSTF_COMMIT?=origin/master
FUELLIB_COMMIT?=master
NAILGUN_COMMIT?=master
ASTUTE_COMMIT?=master
OSTF_COMMIT?=master
FUELLIB_REPO?=https://github.com/Mirantis/fuel.git
NAILGUN_REPO?=https://github.com/stackforge/fuel-web.git

View File

@ -15,8 +15,7 @@ $(BUILD_DIR)/repos/$1.done:
# Clone repo and checkout required commit
mkdir -p $(BUILD_DIR)/repos
rm -rf $(BUILD_DIR)/repos/$1
git clone $2 $(BUILD_DIR)/repos/$1
cd $(BUILD_DIR)/repos/$1 && git reset --hard $3
git clone --depth 1 --branch $3 $2 $(BUILD_DIR)/repos/$1
# Update versions.yaml
touch $(BUILD_DIR)/repos/version.yaml
sed -i '/^ $1_sha:/d' $(BUILD_DIR)/repos/version.yaml