Skip to content
This repository has been archived by the owner on Sep 16, 2024. It is now read-only.

Commit

Permalink
fix: clone self-host repository failed
Browse files Browse the repository at this point in the history
  • Loading branch information
alexcodelf authored and thxCode committed Aug 14, 2023
1 parent 67b02e5 commit 3385be9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/vcs/repo.go
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ func CloneGitRepo(link, dir string) (*git.Repository, error) {

switch endpoint.Protocol {
case "http", "https":
src = endpoint.Host + endpoint.Path
src = strings.TrimLeft(endpoint.String(), endpoint.Protocol+"://")
default:
src = link
}
Expand Down

0 comments on commit 3385be9

Please sign in to comment.