From aea6e3edb7e4bd8d6312f0eeb83f7252da544fb5 Mon Sep 17 00:00:00 2001 From: Jacob Lorenzen Date: Tue, 20 Feb 2018 18:20:01 +0100 Subject: [PATCH] Add comment on default VSTS repository urls --- git-open | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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.