deforaos-job-git-tests: fix updating sub-modules

This commit is contained in:
Pierre Pronchery 2022-05-31 08:23:06 +02:00
parent 99c3240915
commit 071a9ab252

View File

@ -62,10 +62,10 @@ _git_tests()
fi
#clone the repository
$GIT_CLONE --single-branch -b "$GIT_BRANCH" \
"$GIT_REMOTE${repository}.git" "$tmpdir"
"$GIT_REMOTE${repository}.git" "$tmpdir/repository"
if [ $? -ne 0 ]; then
echo "$repository: Could not clone" 1>&2
elif [ -d "$tmpdir/tests" ]; then
elif [ -d "$tmpdir/repository/tests" ]; then
#update submodules if any
[ -f "$tmpdir/repository/.gitmodules" ] &&
(cd "$tmpdir/repository" &&