-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
support Git wire protocol #4002
Comments
Could you please add a link in English, because I am not able to read Chinese? |
Useful information about testing v2 protocol: |
Hi once again. There's a branch for support git protocol v2 for gitlab:
I'm not a GO developer but out of curiosity I've checked gitea sources and it seems to me that such behaviour could be implemented in routers/repo/http.go |
So, does current version support git v2 protocal? |
Could we list the lack of Git Wire Protocol, Version 2 support in the comparison page (https://docs.gitea.io/en-us/comparison/)? |
@NLZ please send a PR |
We already support git wire protocol version 2. Closing this as complete. |
Another reason to choose gitea rather than gogs gogs/gogs#5269 |
Sorry to raise this issue back from the dead, but cloning Gitea repositories using Git Wire Protocol Version 2 (via HTTP) still doesn't appear to work. I think this is because Gitea isn't passing the I think we'd need to add something like this: if protocol := h.r.Header.Get("Git-Protocol"); protocol != "" {
h.environ = append(h.environ, "GIT_PROTOCOL="+protocol)
} to (Source code based on the implementation in |
@wmhilton That looks like it would work. Fancy making a quick PR for this? I'd recommend just double checking that nothing horrible could happen by allowing the user to arbitrarily set the value of environment variables - it might just be easier to do some verification at the cost of having to update the code at a later point. |
@zeripath Yes, I'll try making a build with that change and see if it works for me. And yes, the arbitraryness of the env var worries me too a bit... the git docs say it can consist of multiple |
It's not quite as trivial as I thought, because it requires modification of the Also, the really interesting feature of Protocol Version 2 (partial clone) requires that the repos have |
https://opensource.googleblog.com/2018/05/introducing-git-protocol-version-2.html
中文翻译:http://www.techug.com/post/git-v2-git-wire-protocol.html
The text was updated successfully, but these errors were encountered: