Skip to content

Commit aea6e3e

Browse files
committed
Add comment on default VSTS repository urls
1 parent 67b72ac commit aea6e3e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

git-open

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,8 @@ elif [[ "${#pathargs[@]}" -ge '2' && ${pathargs[${#pathargs[@]} - 2]} == '_git'
137137
if (( is_issue )); then
138138
# Switch to workitems, provide work item id if specified
139139
urlpath="${urlpath%%/_git/*}/_workitems"
140-
urlpath="${urlpath/_git\//}"
140+
# Handle case for the default repository url
141+
urlpath="${urlpath#_git\/*}"
141142
providerBranchRef="?id=${branch//[^0-9]/}"
142143
else
143144
# Keep project and repository name, append branch selector.

0 commit comments

Comments
 (0)