From 0b042abfbed37262d40dcccaabe123227c3ed23d Mon Sep 17 00:00:00 2001 From: shy Date: Tue, 12 Dec 2023 15:47:14 +0800 Subject: [PATCH] fix git.status --- 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 5e5e5409..c76db8bc 100644 --- a/misc/git/repos.go +++ b/misc/git/repos.go @@ -146,7 +146,7 @@ func _repos_auth(m *ice.Message, origin string) *http.BasicAuth { list, ok := m.Optionv("repos.auth").(map[string]*url.URL) kit.If(!ok, func() { list = _repos_credentials(m) }) if u, ok := list[kit.ParseURL(_repos_remote(m, origin)).Host]; !ok { - return nil + return &http.BasicAuth{} } else if password, ok := u.User.Password(); !ok { return nil } else {