Skip to content
Snippets Groups Projects
Commit 344c2bec authored by rubo77's avatar rubo77
Browse files

travis: add --depth=1 to checkout of repos

parent 81d09f1d
No related branches found
No related tags found
No related merge requests found
......@@ -17,7 +17,7 @@ rm -Rf $testpath
mkdir -p $testpath/packages
cd $testpath/packages
for feed in $GLUON_SITE_FEEDS; do
echo "checking PACKAGES_${feed^^}_REPO ..."
echo "####### checking PACKAGES_${feed^^}_REPO ..."
repo_var=$(echo PACKAGES_${feed^^}_REPO)
commit_var=$(echo PACKAGES_${feed^^}_COMMIT)
branch_var=$(echo PACKAGES_${feed^^}_BRANCH)
......@@ -36,7 +36,7 @@ for feed in $GLUON_SITE_FEEDS; do
echo "branch $branch_var missing"
exit 1
fi
git clone -b "$branch" --single-branch "$repo" $feed
git clone -b "$branch" --single-branch --depth=1 "$repo" $feed
if [ "$?" != "0" ]; then exit 1; fi
cd $feed
git checkout "$commit"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment