deforaos-job-git-tests: fix updating sub-modules
This commit is contained in:
parent
99c3240915
commit
071a9ab252
|
@ -62,10 +62,10 @@ _git_tests()
|
||||||
fi
|
fi
|
||||||
#clone the repository
|
#clone the repository
|
||||||
$GIT_CLONE --single-branch -b "$GIT_BRANCH" \
|
$GIT_CLONE --single-branch -b "$GIT_BRANCH" \
|
||||||
"$GIT_REMOTE${repository}.git" "$tmpdir"
|
"$GIT_REMOTE${repository}.git" "$tmpdir/repository"
|
||||||
if [ $? -ne 0 ]; then
|
if [ $? -ne 0 ]; then
|
||||||
echo "$repository: Could not clone" 1>&2
|
echo "$repository: Could not clone" 1>&2
|
||||||
elif [ -d "$tmpdir/tests" ]; then
|
elif [ -d "$tmpdir/repository/tests" ]; then
|
||||||
#update submodules if any
|
#update submodules if any
|
||||||
[ -f "$tmpdir/repository/.gitmodules" ] &&
|
[ -f "$tmpdir/repository/.gitmodules" ] &&
|
||||||
(cd "$tmpdir/repository" &&
|
(cd "$tmpdir/repository" &&
|
||||||
|
|
Loading…
Reference in New Issue
Block a user