We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5ca8e61 commit 2830c5fCopy full SHA for 2830c5f
modules/git/remote.go
@@ -91,6 +91,9 @@ func IsRemoteNotExistError(err error) bool {
91
92
// normalizeSSHURL converts SSH-SCP format URLs to standard ssh:// format for security
93
func normalizeSSHURL(remoteAddr string) (string, error) {
94
+ if strings.HasPrefix(remoteAddr, "ssh://") {
95
+ return remoteAddr, nil
96
+ }
97
if strings.Contains(remoteAddr, "://") {
98
return remoteAddr, errors.New("remoteAddr has a scheme")
99
}
0 commit comments