Skip to content

Commit

Permalink
feat: do not convert git URL protocol
Browse files Browse the repository at this point in the history
  • Loading branch information
Zebradil committed Jun 14, 2023
1 parent af65436 commit 2823eb6
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions internal/myks/globe.go
Original file line number Diff line number Diff line change
Expand Up @@ -314,11 +314,7 @@ func (g *Globe) setGitRepoUrl() error {
if err != nil {
return err
}
// Transform ssh url to https url
g.GitRepoUrl = strings.Trim(result.Stdout, "\n")
g.GitRepoUrl = strings.ReplaceAll(g.GitRepoUrl, ":", "/")
g.GitRepoUrl = strings.ReplaceAll(g.GitRepoUrl, "git@", "https://")
g.GitRepoUrl = strings.ReplaceAll(g.GitRepoUrl, ".git", "")
}
return nil
}
Expand Down

0 comments on commit 2823eb6

Please sign in to comment.