You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@devlake.apache.org by kl...@apache.org on 2024/05/07 03:07:28 UTC

(incubator-devlake) branch kw-7343-azdo-gitclone created (now f576b2bfd)

This is an automated email from the ASF dual-hosted git repository.

klesh pushed a change to branch kw-7343-azdo-gitclone
in repository https://gitbox.apache.org/repos/asf/incubator-devlake.git


      at f576b2bfd fix: noShallowClone was overwritten

This branch includes the following new commits:

     new f576b2bfd fix: noShallowClone was overwritten

The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.



(incubator-devlake) 01/01: fix: noShallowClone was overwritten

Posted by kl...@apache.org.
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 <zh...@merico.dev>
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,
 				},
 			})
 		}