Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Azure dev ops support #35

Open
jankatins opened this issue Sep 26, 2023 · 0 comments
Open

Azure dev ops support #35

jankatins opened this issue Sep 26, 2023 · 0 comments

Comments

@jankatins
Copy link

jankatins commented Sep 26, 2023

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 ...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant