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'
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.
Original file line number Diff line number Diff line change @@ -496,6 +496,13 @@ setup() {
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 ..
You can’t perform that action at this time.
0 commit comments