From af155678f837d80a6b4debfe248c54e7f941c857 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9gis=20Belson?= Date: Wed, 28 Feb 2018 16:48:32 +0100 Subject: [PATCH] Do a full clone when tag filter is set --- assets/check | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/assets/check b/assets/check index 56e4b74f..eb4b93a3 100755 --- a/assets/check +++ b/assets/check @@ -39,11 +39,17 @@ if [ -d $destination ]; then git reset --hard FETCH_HEAD else branchflag="" + singlebranchflag="--single-branch" + if [ -n "$branch" ]; then branchflag="--branch $branch" + else + if [ -n "$tag_filter" ]; then + singlebranchflag="" + fi fi - git clone --single-branch $uri $branchflag $destination + git clone $singlebranchflag $uri $branchflag $destination cd $destination fi