Skip to content

small bug fixed #14

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

Merged
merged 1 commit into from
Nov 24, 2022
Merged

small bug fixed #14

merged 1 commit into from
Nov 24, 2022

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