This is an automated email from the ASF dual-hosted git repository. klesh pushed a commit to branch kw-7343-azdo-gitclone in repository https://gitbox.apache.org/repos/asf/incubator-devlake.git
commit f576b2bfd97efa609a4e29d58fae9f7eb9df6611 Author: Klesh Wong <[email protected]> AuthorDate: Tue May 7 11:06:20 2024 +0800 fix: noShallowClone was overwritten --- backend/plugins/azuredevops_go/api/blueprint_v200.go | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/backend/plugins/azuredevops_go/api/blueprint_v200.go b/backend/plugins/azuredevops_go/api/blueprint_v200.go index 4aa539319..59a587b78 100644 --- a/backend/plugins/azuredevops_go/api/blueprint_v200.go +++ b/backend/plugins/azuredevops_go/api/blueprint_v200.go @@ -18,9 +18,10 @@ limitations under the License. package api import ( - "golang.org/x/exp/slices" "net/url" + "golang.org/x/exp/slices" + "github.com/apache/incubator-devlake/core/errors" "github.com/apache/incubator-devlake/core/utils" @@ -178,10 +179,11 @@ func makePipelinePlanV200( stage = append(stage, &coreModels.PipelineTask{ Plugin: "gitextractor", Options: map[string]interface{}{ - "url": cloneUrl.String(), - "name": azuredevopsRepo.Name, - "repoId": didgen.NewDomainIdGenerator(&models.AzuredevopsRepo{}).Generate(connection.ID, azuredevopsRepo.Id), - "proxy": connection.Proxy, + "url": cloneUrl.String(), + "name": azuredevopsRepo.Name, + "repoId": didgen.NewDomainIdGenerator(&models.AzuredevopsRepo{}).Generate(connection.ID, azuredevopsRepo.Id), + "proxy": connection.Proxy, + "noShallowClone": true, }, }) }
