Skip to content

Conversation

@Th1nkMore
Copy link
Contributor

Hey, I think I have found a small bug and fixed it!
When client requests with header setting as "Git-Protocol: version=2", the origin code failed. The client shows error with "expected flush after ref listing". By using wireshark, I realized the server failed to handle the second request correctly.
image
And finally I found that the cmd.Env is not set correctly when the "Git-Protocol" header is set since it's always going to be covered the second assignment. Simply changing the order of assignment works.
It's my first time to create a pull request and try to make some contribution to your project. It will be kind of you to let me know if I did anything wrong.

@asim
Copy link
Owner

asim commented Nov 24, 2022

Thanks for your contribution

@asim asim merged commit c60c671 into asim:master Nov 24, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants