Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
1170: repository URLs sometimes end in .git in real-world usage r=carols10cents And this is okay, because the major sites (BitBucket, GitHub, GitLab) all either directly support visiting the `.git`-suffixed URL of any repo, or redirect from it to the non-suffixed version. These all work fine as-is. What they don't universally work for is letting you append any path onto that. (Which is to say, from my testing BitBucket doesn't mind, but GitHub and GitLab both 404.) So we trim the suffix when manipulating relative paths. See clap-rs/clap#1106 for where this came up with `clap`.
- Loading branch information