mirror of
https://github.com/paulirish/git-open.git
synced 2026-09-13 17:06:17 -04:00
Instead of trying to strip on ':' and '/' to simplify a URL, actually
switch based on whether the remote path is a URL ("scheme://host:port/path")
or an SCP-style path (user@host:path) and parse them separately.
This allows us to handle custom ports in HTTP and HTTPS, but ignore
custom ports in an SSH url and HTTP remotes, instead of always upgrading
them to HTTPS.
|
||
|---|---|---|
| .. | ||
| test_helper | ||
| git-open.bats | ||