-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix repo name Signed-off-by: Zach Aller <[email protected]>
- Loading branch information
Showing
2 changed files
with
4 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -45,9 +45,9 @@ func NewGithubGitAuthenticationProvider(scmProvider *v1alpha1.ScmProvider, secre | |
|
||
func (gh GitAuthenticationProvider) GetGitHttpsRepoUrl(gitRepository v1alpha1.GitRepository) string { | ||
if gh.scmProvider.Spec.GitHub != nil && gh.scmProvider.Spec.GitHub.Domain == "" { | ||
return fmt.Sprintf("https://[email protected]/%s/%s.git", gitRepository.Spec.Owner, gitRepository.Name) | ||
return fmt.Sprintf("https://[email protected]/%s/%s.git", gitRepository.Spec.Owner, gitRepository.Spec.Name) | ||
} | ||
return fmt.Sprintf("https://git@%s/%s/%s.git", gh.scmProvider.Spec.GitHub.Domain, gitRepository.Spec.Owner, gitRepository.Name) | ||
return fmt.Sprintf("https://git@%s/%s/%s.git", gh.scmProvider.Spec.GitHub.Domain, gitRepository.Spec.Owner, gitRepository.Spec.Name) | ||
} | ||
|
||
func (gh GitAuthenticationProvider) GetToken(ctx context.Context) (string, error) { | ||
|