mirror of https://github.com/harness/drone.git
fix: [CODE-2316]: Send empty list in case of no repos present in space (#2613)
* fix: [CODE-2316]: Send empty list in case of no repos present in spacepull/3545/head
parent
d50945fd60
commit
57368eba55
|
@ -78,7 +78,7 @@ func (c *Controller) ListRepositoriesNoAuth(
|
||||||
return nil, 0, err
|
return nil, 0, err
|
||||||
}
|
}
|
||||||
|
|
||||||
var reposOut []*repoCtrl.RepositoryOutput
|
reposOut := []*repoCtrl.RepositoryOutput{}
|
||||||
for _, repo := range repos {
|
for _, repo := range repos {
|
||||||
// backfill URLs
|
// backfill URLs
|
||||||
repo.GitURL = c.urlProvider.GenerateGITCloneURL(ctx, repo.Path)
|
repo.GitURL = c.urlProvider.GenerateGITCloneURL(ctx, repo.Path)
|
||||||
|
|
Loading…
Reference in New Issue