File tree Expand file tree Collapse file tree 2 files changed +9
-0
lines changed Expand file tree Collapse file tree 2 files changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -189,6 +189,8 @@ elif [[ "${#pathargs[@]}" -ge '2' && ${pathargs[${#pathargs[@]} - 2]} == '_git'
189189 if (( is_issue )) ; then
190190 # Switch to workitems, provide work item id if specified
191191 urlpath=" ${urlpath%%/ _git/* } /_workitems"
192+ # Handle case for the default repository url
193+ urlpath=" ${urlpath# _git\/ * } "
192194 providerBranchRef=" ?id=${branch// [^0-9]/ } "
193195 else
194196 # Keep project and repository name, append branch selector.
Original file line number Diff line number Diff line change @@ -496,6 +496,13 @@ setup() {
496496 assert_output " http://tfs.example.com:8080/Project/Folder/_workitems?id=36"
497497}
498498
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+
499506
500507teardown () {
501508 cd ..
You can’t perform that action at this time.
0 commit comments