From d00650bbb051d6da2ac35d0663bce662768a5a41 Mon Sep 17 00:00:00 2001 From: shylinux Date: Fri, 14 Jul 2023 16:50:44 +0800 Subject: [PATCH] opt some --- misc/git/repos.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/misc/git/repos.go b/misc/git/repos.go index a7ab9635..73888c56 100644 --- a/misc/git/repos.go +++ b/misc/git/repos.go @@ -475,7 +475,7 @@ func init() { if insteadof != "" { 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") } else if password, ok := u.User.Password(); !ok { return errors.New("not found password")