mirror of
https://github.com/runkids/skillshare.git
synced 2026-11-20 12:23:22 +00:00
* test(update): cover batch fetch failure warning A batch update that cannot fetch a repo counts its skills as skipped and prints nothing about it. Remove the remote after installing two grouped skills and check that update --all names the repo in a warning. * fix(update): warn when a repo fetch fails When a clone failed during update --all, the summary counted its skills as skipped and printed nothing. That hid a repo that timed out on every run. Print the repo and the error. * fix(update): redact credentials in fetch warning The fetch warning printed the stored repo URL as is. An HTTPS URL can carry a token as userinfo, and git error text can echo that URL, so the token reached stdout and CI logs. Name the repo with DisplayURL, which already strips userinfo for submodule URLs, and redact the userinfo from the error text. * fix(update): redact query tokens in fetch warning The fetch warning redacted only the userinfo of the repo URL. A token in the query survived in the error text, since git echoes the full URL. And DisplayURL treats the last "@" anywhere as the end of userinfo, so an "@" in the path named a different repo. Parse http(s) repo URLs the way git does: userinfo ends at the last "@" before the first "/", and the query and fragment go too. Remove the same parts from the error text. Other URLs print unchanged. DisplayURL goes back to being private to submodule.go. --------- Co-authored-by: Willie <egg358358@gmail.com>