Skip to content

Commit ae405a0

Browse files
committed
Better git url handling
1 parent 4a657f4 commit ae405a0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: arduino/libraries/librariesmanager/install.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ func (lm *LibrariesManager) InstallGitLib(gitURL string) error {
137137

138138
func parseGitURL(gitURL string) (string, error) {
139139
var res string
140-
if strings.HasPrefix(gitURL, "git") || strings.HasPrefix(gitURL, "ssh") {
140+
if strings.HasPrefix(gitURL, "git@") {
141141
// We can't parse these as URLs
142142
i := strings.LastIndex(gitURL, "/")
143143
res = strings.TrimRight(gitURL[i+1:], ".git")

0 commit comments

Comments
 (0)