GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — fix git repo public check for azure devops by marcosnils · Pull Request #13516 · dagger/dagger

Conversation

@marcosnils

@marcosnils marcosnils commented Jun 18, 2026

Copy link
Copy Markdown
Contributor

Looks like azure devops changed the way they handle unauthenticated git requests, which causes go-git to return an error different to ErrInvalidPktLen. This commit adds handling for the new response and error and treat it as an auth-required/private repository.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@grouville
grouville self-requested a review June 18, 2026 18:51
grouville
grouville approved these changes Jun 18, 2026
View reviewed changes

@grouville grouville left a comment •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Member

There was a problem hiding this comment.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. I checked go-git: latest v5 (v5.19.1) and releases/v5.x still returns this Azure /_signin redirect as a plain redirect error, not ErrAuthenticationRequired

Instead of upstreaming it, faster to own it 🙏

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
Comment thread core/schema/git.go Outdated
@@ -836,14 +836,20 @@ func IsRemotePublic(ctx context.Context, remote *gitutil.GitURL) (bool, error) {
})
_, err := repo.ListContext(ctx, &git.ListOptions{Auth: nil})
if err != nil {
// Some Git hosts (Azure Repos and custom portals) return a 200 HTML login page for unauthenticated refs: go-git reports ErrInvalidPktLen
fmt.Printf("Message: %v | Type: %T\n", err, err)

@grouville grouville Jun 18, 2026 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Member

There was a problem hiding this comment.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we want to keep the fmt.Printf() ?

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@grouville grouville mentioned this pull request Jun 18, 2026
Expose typed auth error for Azure DevOps /_signin redirects go-git/go-git#2200
Closed
@grouville

grouville commented Jun 18, 2026

Copy link
Copy Markdown
Member

Corresponding upstream issue created go-git/go-git#2200

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@marcosnils
fix git repo public check for azure devops
fafacf6
Looks like azure devops changed the way they handle unauthenticated git requests,
which causes go-git to return an error different to ErrInvalidPktLen.
This commit adds handling for the new response and error and treat it as an auth-required/private repository.

Signed-off-by: Marcos Nils <[email protected]>
@marcosnils
marcosnils force-pushed the push-wlvrpknmzqos branch from 1686ac6 to fafacf6 Compare June 18, 2026 19:20
@marcosnils
marcosnils merged commit 225d966 into dagger:main Jun 18, 2026
4 of 81 checks passed

Uh oh!

There was an error while loading. Please reload this page.

@marcosnils
marcosnils deleted the push-wlvrpknmzqos branch June 18, 2026 19:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@grouville grouville grouville approved these changes

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

2 participants

@marcosnils @grouville
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.