File tree Expand file tree Collapse file tree 2 files changed +8
-0
lines changed Expand file tree Collapse file tree 2 files changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -137,6 +137,7 @@ elif [[ "${#pathargs[@]}" -ge '2' && ${pathargs[${#pathargs[@]} - 2]} == '_git'
137
137
if (( is_issue )) ; then
138
138
# Switch to workitems, provide work item id if specified
139
139
urlpath=" ${urlpath%%/ _git/* } /_workitems"
140
+ urlpath=" ${urlpath/ _git\/ / } "
140
141
providerBranchRef=" ?id=${branch// [^0-9]/ } "
141
142
else
142
143
# Keep project and repository name, append branch selector.
Original file line number Diff line number Diff line change @@ -361,6 +361,13 @@ setup() {
361
361
assert_output " http://tfs.example.com:8080/Project/Folder/_workitems?id=36"
362
362
}
363
363
364
+ @test " vsts: default project repository - issue" {
365
+ git remote set-url origin " https://gitopen.visualstudio.com/_git/Project"
366
+ git checkout -B " bugfix-36"
367
+ run ../git-open " --issue"
368
+ assert_output " https://gitopen.visualstudio.com/Project/_workitems?id=36"
369
+ }
370
+
364
371
365
372
teardown () {
366
373
cd ..
You can’t perform that action at this time.
0 commit comments