I've an azure devops repo which I checked our via ssh: git remote get-url origin returns <org>@vs-ssh.visualstudio.com:v3/<org>/<project>/<repo>. The current branch is feature/whatever and I'm in the repo root.
if I run git brws, I would have expected it to open the branch in the repo root, but my browser opens https://dev.azure.com/<org>/<project>. The real url should have been: https://dev.azure.com/<org>/<project>/_git/<repo>?version=GBfeature%2Fwhatever&path=/ (so the branch has to be url encoded with version=GB in front; project also needed a space URL encoded as %20, but that was already that way in the ssh url).
If I use git brws -c, the browser opens https://dev.azure.com/<org>/_git/<project>?version=GBfeature/whatever, so no URL encoded branch name and the project is in the wrong place.
If I do something similar in a repo which was checked out via https, I get this via git remote get-url origin: https://<org>.visualstudio.com/<project>/_git/<repo> and git brws throws an error: Error: Unknown hosting service for URL https://<org>.visualstudio.com/<project>/_git/<repo>. If you want to use custom URL for GitHub Enterprise ...
I've an azure devops repo which I checked our via ssh:
git remote get-url originreturns<org>@vs-ssh.visualstudio.com:v3/<org>/<project>/<repo>. The current branch isfeature/whateverand I'm in the repo root.if I run
git brws, I would have expected it to open the branch in the repo root, but my browser openshttps://dev.azure.com/<org>/<project>. The real url should have been:https://dev.azure.com/<org>/<project>/_git/<repo>?version=GBfeature%2Fwhatever&path=/(so the branch has to be url encoded withversion=GBin front; project also needed a space URL encoded as%20, but that was already that way in the ssh url).If I use
git brws -c, the browser openshttps://dev.azure.com/<org>/_git/<project>?version=GBfeature/whatever, so no URL encoded branch name and the project is in the wrong place.If I do something similar in a repo which was checked out via https, I get this via
git remote get-url origin:https://<org>.visualstudio.com/<project>/_git/<repo>and git brws throws an error:Error: Unknown hosting service for URL https://<org>.visualstudio.com/<project>/_git/<repo>. If you want to use custom URL for GitHub Enterprise ...