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

x/arch: go-git PlainClone failure #65715

Closed
pahad2000 opened this issue Feb 15, 2024 · 0 comments
Closed

x/arch: go-git PlainClone failure #65715

pahad2000 opened this issue Feb 15, 2024 · 0 comments
Labels

Comments

@pahad2000
Copy link

What is the URL of the page with the issue?

https://go.googlesource.com/arch/

What is your user agent?

Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/121.0.0.0 Safari/537.36

Screenshot

No response

What did you do?

`
import (
"github.com/go-git/go-git/v5/plumbing/transport/http"
httpClient "net/http"
)

httpBasicAuth := &http.TokenAuth{Token : “{Token generated by ‘Generate Password’ found here: https://go.googlesource.com}”
_, err = git.PlainClone(directory, false, &git.CloneOptions{
URL: “https://go.googlesource.com/arch/”,
Auth: httpBasicAuth,
RecurseSubmodules: git.DefaultSubmoduleRecursionDepth,}) `

I have also tried http.BasicAuth with my google credentials. Neither seem to work with all the possible settings I could think of.

What did you see happen?

unexpected client error: unexpected requesting "https://go.googlesource.com/arch/info/refs?service=git-upload-pack" status code: 400

What did you expect to see?

Cloning the repository

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

No branches or pull requests

1 participant