Skip to content

Commit

Permalink
Fix periodic tests checkout script (kubeflow#430)
Browse files Browse the repository at this point in the history
  • Loading branch information
richardsliu authored and k8s-ci-robot committed Aug 2, 2019
1 parent 1231ff9 commit 52615d4
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion images/checkout.sh
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,9 @@ mkdir -p /src/${REPO_OWNER}
# TODO(jlewi): We should eventually move the code for running the workflow from
# kubeflow/kubeflow into kubeflow/testing
# We need depth=2 so that we can compare commit with previous commit in postsubmit runs.
git clone --depth=2 https://github.com/${REPO_OWNER}/${REPO_NAME}.git ${SRC_DIR}/${REPO_OWNER}/${REPO_NAME}
# We also need --no-single-branch because otherwise Git assumes there is only one branch,
# which causes periodic tests against non-master branches to fail.
git clone --depth=2 --no-single-branch https://github.com/${REPO_OWNER}/${REPO_NAME}.git ${SRC_DIR}/${REPO_OWNER}/${REPO_NAME}

echo Job Name = ${JOB_NAME}

Expand Down

0 comments on commit 52615d4

Please sign in to comment.