ben-gibson / GitLink

A Jetbrains plugin that opens a local file under Git version control in its remote host using the default browser.
https://plugins.jetbrains.com/plugin/8183-gitlink
MIT License
671 stars 58 forks source link

Azure Git link lands in 404 #311

Closed murlakatam closed 10 months ago

murlakatam commented 11 months ago

GitLink image produces url https://dev.azure.com/moeedunz/_git/{project_name}/{repository_name}?version=GCfd89ce0e3d7b985ad86adae9318fe1d59dde2239&path={filePath}&line=12&lineEnd=13&lineStartColumn=1&lineEndColumn=1

which is ending up being a 404

image

While changing the url manually to

https://dev.azure.com/moeedunz/{project_name}/_git/{repository_name}?version=GCfd89ce0e3d7b985ad86adae9318fe1d59dde2239&path={filePath}&line=12&lineEnd=13&lineStartColumn=1&lineEndColumn=1

makes it working again

_git/{project_name} vs {project_name}/_git

ben-gibson commented 11 months ago

What does your git remote -v output look like?

murlakatam commented 11 months ago

origin git@ssh.dev.azure.com:v3/moeedunz/{project_name}/{repository_name} (push)

It was working fine recently

scmrus commented 11 months ago

+1: same problem: it was working recently, but now it's 404 because of misplaced _git: should be after the project, not before.

git remote -v
origin  git@ssh.dev.azure.com:v3/somecompany/PRJ1/reponame1 (fetch)
origin  git@ssh.dev.azure.com:v3/somecompany/PRJ1/reponame1 (push)
murlakatam commented 11 months ago

@scmrus the workaround is to completely uninstall the plugin and then install previous version from disk image

@ben-gibson since it is working with previous release I bet this commit has a bug in it.

ben-gibson commented 10 months ago

This should be fixed in the latest version thanks to @murlakatam