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 1908316 commit a1c5096Copy full SHA for a1c5096
git.go
@@ -10,7 +10,7 @@ import (
10
"time"
11
)
12
13
-const _VERSION = "0.2.6"
+const _VERSION = "0.2.7"
14
15
func Version() string {
16
return _VERSION
submodule.go
@@ -49,7 +49,9 @@ func (sf *SubModuleFile) RefUrl(urlPrefix string) string {
49
// sysuser@xxx:user/repo
50
i := strings.Index(url, "@")
51
j := strings.LastIndex(url, ":")
52
- if i > -1 && j > -1 {
+
53
+ // Only process when i < j because git+ssh://[email protected]/npploader.git
54
+ if i > -1 && j > -1 && i < j {
55
// fix problem with reverse proxy works only with local server
56
if strings.Contains(urlPrefix, url[i+1:j]) {
57
return urlPrefix + url[j+1:]
0 commit comments