FeatureFuel
4

Git Sync: Azure DevOps repositories fail with 404 because nanogit unconditionally appends .git to URLs

Source: grafana/grafana#120149 · opened by @MikeDevresse
What happened? Configuring the Grafana 12 git sync feature (Administration → Provisioning) with an Azure DevOps repository fails with: failed check if authorized: get repository info: got status code 404: 404 Not Found The root cause is that nanogit (v0.3.0) unconditionally appends [.git](vscode-file://vscode-app/usr/share/code/resources/app/out/vs/code/electron-browser/workbench/workbench.html) to every repository URL, regardless of whether the server supports it. Azure DevOps interprets [.git](vscode-file://vscode-app/usr/share/code/resources/app/out/vs/code/electron-browser/workbench/workbench.html) as a literal part of the repository name (not a suffix to strip), so the resulting URL points to a non-existent repository. In [email protected]/rawclient.go: This transforms: to And azure devops doesn't support .git extensions What did you expect to happen? Grafana connects successfully to the Azure DevOps repository using the provided URL and PAT. Did this work before? N…

No pledges yet. Be the first to back this.

Make a pledge

Pledge your monetary support if this feature is added.

$

Comments

No comments yet.

Replying to

Add a comment

What do you think about this feature request?


Similar requests