mirror of
https://github.com/paulirish/git-open.git
synced 2026-09-15 01:36:26 -04:00
VSTS and TFS URLs end in '/_git/RepositoryName` (with 0 or more leading folders of hierarchy in front of that.) Detect these from the `_git` in the penultimate folder of the path. Append branch information to VSTS and TFS URLs. Since VSTS and TFS use a query string to select a branch, instead of including it in the server path, the `providerBranchRef` for other services was changed to include the leading `/`, and now the `openurl` and `providerBranchRef` are simply concatenated, to avoid an incorrect trailing `/` for the VSTS and TFS branch URLs. |
||
|---|---|---|
| .. | ||
| test_helper | ||
| git-open.bats | ||