We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 4062cc0 + 0a1ea3e commit eb076e8Copy full SHA for eb076e8
functions-common
@@ -646,9 +646,10 @@ function git_clone {
646
echo "the project to the \$PROJECTS variable in the job definition."
647
die $LINENO "ERROR_ON_CLONE is set to True so cloning not allowed in this configuration"
648
fi
649
- git_timed clone $git_clone_flags $git_remote $git_dest
+ git_timed clone --no-checkout $git_clone_flags $git_remote $git_dest
650
cd $git_dest
651
- git checkout $git_ref
+ git_timed fetch $git_clone_flags origin $git_ref
652
+ git_timed checkout FETCH_HEAD
653
elif [[ "$RECLONE" = "True" ]]; then
654
# if it does exist then simulate what clone does if asked to RECLONE
655
0 commit comments