forked from x/icebergs
opt some
This commit is contained in:
parent
cf79f573e7
commit
d00650bbb0
@ -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")
|
||||||
|
Loading…
x
Reference in New Issue
Block a user