fix for making imported ADO repos' visibility the same as it's project's visibility (#2179)

* Merge branch 'main' of https://git0.harness.io/l7B_kbSEQD2wjrM7PShm5w/PROD/Harness_Commons/gitness into ks/CODE-2073
* removed extra check for azure provider type for importing
* fix for making imported ADO repos' visibility the same as it's project's visibility
This commit is contained in:
Karan Saraswat 2024-07-08 18:39:48 +00:00 committed by Harness
parent 28b55f0e53
commit b10fa3ea76

View File

@ -367,7 +367,7 @@ func LoadRepositoriesFromProviderSpace(
Space: scmRepo.Namespace,
Identifier: scmRepo.Name,
CloneURL: scmRepo.Clone,
IsPublic: provider.Type != ProviderTypeAzure && !scmRepo.Private,
IsPublic: !scmRepo.Private,
DefaultBranch: scmRepo.Branch,
})
}