1
0
forked from x/icebergs
This commit is contained in:
IT 老营长 @云轩领航-创始人 2023-07-14 16:50:44 +08:00
parent cf79f573e7
commit d00650bbb0

View File

@ -475,7 +475,7 @@ func init() {
if insteadof != "" { if insteadof != "" {
remoteURL = insteadof + path.Base(remoteURL) remoteURL = insteadof + path.Base(remoteURL)
} }
if u, ok := list[kit.ParseURL(value[ORIGIN]).Host]; !ok { if u, ok := list[kit.ParseURL(remoteURL).Host]; !ok {
return errors.New("not found userinfo") return errors.New("not found userinfo")
} else if password, ok := u.User.Password(); !ok { } else if password, ok := u.User.Password(); !ok {
return errors.New("not found password") return errors.New("not found password")