diff --git a/lib/workingDirectory.js b/lib/workingDirectory.js index 2167581..06063d7 100644 --- a/lib/workingDirectory.js +++ b/lib/workingDirectory.js @@ -81,6 +81,7 @@ async function prepareWorkingDirectory(taskExecutionConfig, conf, logger) { gitRepoURL, gitOperations.clone, dir, + gitOperations.depth, taskExecutionConfig.gitCloneOptions, logger, conf.workspaceRoot @@ -139,6 +140,7 @@ async function prepareWorkingDirectory(taskExecutionConfig, conf, logger) { * @param {*} cloneUrl * @param {*} branch * @param {*} workingDirectory + * @param {*} depth * @param {*} cloneOptions * @param {*} logger * @param {*} workspaceRoot @@ -147,6 +149,7 @@ async function cloneRepo( cloneUrl, branch, workingDirectory, + depth, cloneOptions, logger, workspaceRoot @@ -156,6 +159,9 @@ async function cloneRepo( "git clone -b " + branch + " --single-branch " + + " --depth " + + depth + + " " + cloneOptions + " " + cloneUrl +