Skip to content

Commit

Permalink
Do a full clone when tag filter is set
Browse files Browse the repository at this point in the history
  • Loading branch information
Régis Belson committed Feb 28, 2018
1 parent 94a5f1e commit af15567
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion assets/check
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit af15567

Please sign in to comment.