diff --git a/git-open b/git-open index 6a85f14..85de3b3 100755 --- a/git-open +++ b/git-open @@ -137,7 +137,8 @@ elif [[ "${#pathargs[@]}" -ge '2' && ${pathargs[${#pathargs[@]} - 2]} == '_git' if (( is_issue )); then # Switch to workitems, provide work item id if specified urlpath="${urlpath%%/_git/*}/_workitems" - urlpath="${urlpath/_git\//}" + # Handle case for the default repository url + urlpath="${urlpath#_git\/*}" providerBranchRef="?id=${branch//[^0-9]/}" else # Keep project and repository name, append branch selector.