Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
git: ensure file-looking git refs aren't parsed as URLs
URLs that look like `./path/to/file` and `../path/to/file` definitely aren't git URLs - so we should bail out early. This was causing a weird issue where if you copied `./.git` this would be detected as a valid url parsing with `host = "."` and `path = "/git"`. The fix for this is to make sure that for these explicit file-like paths, we *never* parse them as url-refs. Also some tests to make sure this doesn't break again! Signed-off-by: Justin Chadwell <me@jedevc.com> (cherry picked from commit 95ca25e)
- Loading branch information