Git URL validation now masks embedded credentials before showing an invalid-URL error, with clearer messages for wrong schemes
The validator for SSH git URLs was reworked so that, when it rejects an invalid URL, it builds a masked copy of that URL before putting it in the error message: any embedded username/password (userinfo) is replaced with ***, and query or fragment content is replaced with ***. Errors about a mismatched protocol now also distinguish between a scheme that's simply spelled wrong and other kinds of malformed input, with more specific messages for each.
This stops credentials that were accidentally embedded in a git URL from being echoed back in plain text inside an error message, while giving clearer feedback about why a URL was rejected.