Skip to content
Snippets Groups Projects
Unverified Commit 959ea687 authored by Soule BA's avatar Soule BA
Browse files

Fix panic on bootstrap when orgRef is not retrieved


If implemented, not retrieving an orgRef will always return an error

Signed-off-by: default avatarSoule BA <soule@weave.works>
parent 7b7eb011
No related branches found
No related tags found
No related merge requests found
......@@ -275,7 +275,7 @@ func (b *GitProviderBootstrapper) reconcileOrgRepository(ctx context.Context) (g
subOrgs, repoName := splitSubOrganizationsFromRepositoryName(b.repositoryName)
orgRef, err := b.getOrganization(ctx, subOrgs)
if err != nil {
return nil, fmt.Errorf("failed to create new Git repository for the organization %q: %w", orgRef.String(), err)
return nil, fmt.Errorf("failed to create new Git repository %q: %w", b.repositoryName, err)
}
repoRef := newOrgRepositoryRef(*orgRef, repoName)
repoInfo := newRepositoryInfo(b.description, b.defaultBranch, b.visibility)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment