Projects STRLCPY git-open Commits d049d441
🤬
Revision indexing in progress... (symbol navigation in revisions will be accurate after indexed)
  • ■ ■ ■ ■ ■ ■
    git-open
    skipped 188 lines
    189 189   if (( is_issue )); then
    190 190   # Switch to workitems, provide work item id if specified
    191 191   urlpath="${urlpath%%/_git/*}/_workitems"
     192 + # Handle case for the default repository url
     193 + urlpath="${urlpath#_git\/*}"
    192 194   providerBranchRef="?id=${branch//[^0-9]/}"
    193 195   else
    194 196   # Keep project and repository name, append branch selector.
    skipped 38 lines
  • ■ ■ ■ ■ ■ ■
    test/git-open.bats
    skipped 495 lines
    496 496   assert_output "http://tfs.example.com:8080/Project/Folder/_workitems?id=36"
    497 497  }
    498 498   
     499 +@test "vsts: default project repository - issue" {
     500 + git remote set-url origin "https://gitopen.visualstudio.com/_git/Project"
     501 + git checkout -B "bugfix-36"
     502 + run ../git-open "--issue"
     503 + assert_output "https://gitopen.visualstudio.com/Project/_workitems?id=36"
     504 +}
     505 + 
    499 506   
    500 507  teardown() {
    501 508   cd ..
    skipped 92 lines
Please wait...
Page is in error, reload to recover