mirror of
https://github.com/paulirish/git-open.git
synced 2026-09-10 07:26:15 -04:00
Merge 1b563d8a69 into 63c0e77aaf
This commit is contained in:
commit
078b850acd
5
git-open
5
git-open
|
|
@ -157,6 +157,11 @@ else
|
|||
fi
|
||||
fi
|
||||
|
||||
# Normalize GitHub's SSH gateway hostname back to github.com for URL generation.
|
||||
# ssh.github.com is used when connecting via SSH over port 443 (GitHub's SSH-over-HTTPS gateway),
|
||||
# but the generated URL should still point to github.com.
|
||||
domain=${domain//ssh\.github\.com/github.com}
|
||||
|
||||
# Trim "/" from beginning of URL; "/" and ".git" from end of URL
|
||||
urlpath=${urlpath#/} urlpath=${urlpath%/} urlpath=${urlpath%.git}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue