Skip to content
This repository has been archived by the owner on May 5, 2024. It is now read-only.

Commit

Permalink
♻️ Added the depth param
Browse files Browse the repository at this point in the history
  • Loading branch information
davidahouse committed Nov 24, 2020
1 parent 904c42d commit f33a8a3
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions lib/workingDirectory.js
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,7 @@ async function prepareWorkingDirectory(taskExecutionConfig, conf, logger) {
gitRepoURL,
gitOperations.clone,
dir,
gitOperations.depth,
taskExecutionConfig.gitCloneOptions,
logger,
conf.workspaceRoot
Expand Down Expand Up @@ -139,6 +140,7 @@ async function prepareWorkingDirectory(taskExecutionConfig, conf, logger) {
* @param {*} cloneUrl
* @param {*} branch
* @param {*} workingDirectory
* @param {*} depth
* @param {*} cloneOptions
* @param {*} logger
* @param {*} workspaceRoot
Expand All @@ -147,6 +149,7 @@ async function cloneRepo(
cloneUrl,
branch,
workingDirectory,
depth,
cloneOptions,
logger,
workspaceRoot
Expand All @@ -156,6 +159,9 @@ async function cloneRepo(
"git clone -b " +
branch +
" --single-branch " +
" --depth " +
depth +
" " +
cloneOptions +
" " +
cloneUrl +
Expand Down

0 comments on commit f33a8a3

Please sign in to comment.