From 071a9ab2526cfe1d64a5468404ee1e03496f8525 Mon Sep 17 00:00:00 2001 From: Pierre Pronchery Date: Tue, 31 May 2022 08:23:06 +0200 Subject: [PATCH] deforaos-job-git-tests: fix updating sub-modules --- src/deforaos-job-git-tests | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/deforaos-job-git-tests b/src/deforaos-job-git-tests index dfa0b9e..ed657e8 100755 --- a/src/deforaos-job-git-tests +++ b/src/deforaos-job-git-tests @@ -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" &&