You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, thanks for providing the library. I have a strange error that I'm not able to track down so maybe you can help. When it comes to the push, the git.push() command returns the error in the title. The repository works fine, I tested it via another git client.
org.eclipse.jgit.api.errors.TransportException: https://huggingface.co/datasets/sth/images: expected Content-Type application/x-git-receive-pack-result; received Content-Type null
It seems that the server actually returns the Content-Type null but I have no option to handle this exception so that the push fails whereas I can push with any other git client I use.
Actual behavior
The commit succeeds but the push fails.
Expected behavior
The push should succeed but report that the Content-Type is not correct.
Relevant log output
No response
Other information
No response
The text was updated successfully, but these errors were encountered:
The http protocol documentation mentions the expected content type here. Hence git servers implementing the smart git http protocol should set this response header. I think it makes sense that a git client expects git servers to implement the protocol properly.
Hi @msohn, thanks for the quick response. I did create an issue on the huggingface datasets project here. I wasn't sure if I had to look at the client or the server side for the issue. Do I have an option to manipulate the Service implementation inside TransportHttp?
Version
7.0.0.202409031743-r
Operating System
Linux/Unix, MacOS, Windows
Bug description
Hi, thanks for providing the library. I have a strange error that I'm not able to track down so maybe you can help. When it comes to the push, the git.push() command returns the error in the title. The repository works fine, I tested it via another git client.
org.eclipse.jgit.api.errors.TransportException: https://huggingface.co/datasets/sth/images: expected Content-Type application/x-git-receive-pack-result; received Content-Type null
It seems that the server actually returns the Content-Type null but I have no option to handle this exception so that the push fails whereas I can push with any other git client I use.
Actual behavior
The commit succeeds but the push fails.
Expected behavior
The push should succeed but report that the Content-Type is not correct.
Relevant log output
No response
Other information
No response
The text was updated successfully, but these errors were encountered: