We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4a657f4 commit ae405a0Copy full SHA for ae405a0
arduino/libraries/librariesmanager/install.go
@@ -137,7 +137,7 @@ func (lm *LibrariesManager) InstallGitLib(gitURL string) error {
137
138
func parseGitURL(gitURL string) (string, error) {
139
var res string
140
- if strings.HasPrefix(gitURL, "git") || strings.HasPrefix(gitURL, "ssh") {
+ if strings.HasPrefix(gitURL, "git@") {
141
// We can't parse these as URLs
142
i := strings.LastIndex(gitURL, "/")
143
res = strings.TrimRight(gitURL[i+1:], ".git")
0 commit comments