6
0
mirror of https://github.com/grdl/git-get.git synced 2026-02-05 03:49:42 +00:00

Fix issues found by godot linter

This commit is contained in:
Grzegorz Dlugoszewski
2025-08-24 17:18:03 +02:00
parent 7bc9cbb128
commit eadc2ff45e
9 changed files with 13 additions and 13 deletions

View File

@@ -89,7 +89,7 @@ func normalizeURL(url *urlpkg.URL, defaultHost string, defaultScheme string) {
// Eg, ssh://git@github.com:22/~user/repo.git => github.com/user/repo
//
// If skipHost is true, it removes the host part from the path.
// Eg, ssh://git@github.com:22/~user/repo.git => user/repo
// Eg, ssh://git@github.com:22/~user/repo.git => user/repo.
func URLToPath(url urlpkg.URL, skipHost bool) string {
// Remove port numbers from host.
url.Host = strings.Split(url.Host, ":")[0]