-
Notifications
You must be signed in to change notification settings - Fork 537
Git Fetch does not work with Azure DevOps repos #1058
Comments
Another data point is that another user reports that SSH also fails with azure: |
Its related with #335, looks like MS didn't implement, the basic protocol on his services. And only implements multi-ack protocol. In short, we are not going to implement multi-ack (at least by @src-d), instead, we are already working on the implementation of the new git wire protocol, the v2. Can you test against azure, a git client with v2? (https://opensource.googleblog.com/2018/05/introducing-git-protocol-version-2.html) |
@mcuadros Sure I'd be happy to! However, I'm not sure what exactly you mean by testing "a git client v2". Is there a pointer to some example code which is doing this? |
I mean using, git with v2 protocol against Azure. You have an example in the link I pasted
|
Yes this seems to work:
|
What's the timeframe for v2? We'd just like to understand if we should change the implementation to fork/exec git CLI to workaround this. |
I am also experiencing this issue with the following setup:
Any word on when this issue will be resolved? |
He tried your command as requested (v2 against Azure) and it worked. Do you have a response? :-) Is there any timeframe for v2, @mcuadros? |
We use go-git in our K8s GitOps Deployment tool and users are reporting issues with Azure DevOps git repos. It appears that go-git does not work with Azure DevOps git repos. Fetch fails with the following error:
unexpected client error: unexpected requesting "https://[email protected]/jsuen0437/jsuen/_git/jsuen/git-upload-pack" status code: 400
The go-git call we are making are as follows:
The equivalent git CLI command will succeed
git fetch origin --tags --force
.I traced the error down to the upload_pack.go::UploadPack() when it is making the HTTP request:
The values to the doRequest() call are:
I tested with the following go-git versions:
EDIT: updated to note that this fails even with public repos. Please feel free to use:
https://[email protected]/jsuen0437/jsuen/_git/jsuen
for testing this.The text was updated successfully, but these errors were encountered: