diff --git a/tasks/git-clone-checkout/task.yaml b/tasks/git-clone-checkout/task.yaml index 10413db..39a0257 100644 --- a/tasks/git-clone-checkout/task.yaml +++ b/tasks/git-clone-checkout/task.yaml @@ -174,6 +174,8 @@ spec: git clone --depth=$(params.depth) $(params.url) "${CLONE_DIR}_" cd "${CLONE_DIR}_/" cp -R * ../"${CLONE_DIR}" + cd .. + rm -fR "${CLONE_DIR}_/" fi cd "$CLONE_DIR"