Skip to content
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

feat: add server-side git commands #96

Merged
merged 5 commits into from
Aug 11, 2023
Merged

Conversation

aymanbagabas
Copy link
Contributor

Add server-side git commands for handling git services. This includes git-upload-pack, git-upload-archive, and git-receive-pack services. Also add git-update-server-info helper.

Describe the pull request

A clear and concise description of what the pull request is about, i.e. what problem should be fixed?

Link to the issue:

Checklist

  • I agree to follow the Code of Conduct by submitting this pull request.
  • I have read and acknowledge the Contributing guide.
  • I have added test cases to cover the new code.

Add server-side git commands for handling git services.
This includes git-upload-pack, git-upload-archive, and git-receive-pack
services. Also add git-update-server-info helper.

Signed-off-by: Ayman Bagabas <[email protected]>
@unknwon unknwon self-requested a review June 5, 2023 01:34
@unknwon
Copy link
Member

unknwon commented Jun 5, 2023

Thanks for the PR!

Looks like one of newly added test TestUpdateServerInfo/update-server-info is failing.

@codecov
Copy link

codecov bot commented Aug 10, 2023

Codecov Report

Merging #96 (43fd7c3) into master (2085e8a) will decrease coverage by 0.21%.
Report is 4 commits behind head on master.
The diff coverage is 87.50%.

Additional details and impacted files
@@            Coverage Diff             @@
##           master      #96      +/-   ##
==========================================
- Coverage   83.68%   83.48%   -0.21%     
==========================================
  Files          28       29       +1     
  Lines        1784     1841      +57     
==========================================
+ Hits         1493     1537      +44     
- Misses        176      184       +8     
- Partials      115      120       +5     

@unknwon
Copy link
Member

unknwon commented Aug 11, 2023

I removed UploadArchive from the PR because I am not sure how it will actually work without allowing the caller to piping stdin and stdout, as well as how to test it properly. Feel free to submit another PR to include it again!

@unknwon unknwon merged commit 323efc1 into gogs:master Aug 11, 2023
@unknwon
Copy link
Member

unknwon commented Aug 11, 2023

https://github.com/gogs/git-module/releases/tag/v1.8.3 has been created for this merge.

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