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

Use shellquote to unpack arguments to gitea serv #12624

Merged
merged 3 commits into from
Aug 28, 2020

Conversation

zeripath
Copy link
Contributor

Fix #12471

Signed-off-by: Andrew Thornton art27@cantab.net

@zeripath zeripath added this to the 1.13.0 milestone Aug 27, 2020
Fix go-gitea#12471

Signed-off-by: Andrew Thornton <art27@cantab.net>
@zeripath zeripath force-pushed the fix-12471-git-upload-pack-quoting branch from 6ccadbd to e5bc18f Compare August 27, 2020 20:36
@GiteaBot GiteaBot added the lgtm/need 2 This PR needs two approvals by maintainers to be considered for merging. label Aug 28, 2020
Signed-off-by: Andrew Thornton <art27@cantab.net>
@zeripath
Copy link
Contributor Author

Damn I always forget to run golangci-lint as it makes my laptop jump to 100°C and puts the fans on max. I don't quite understand why...

@codecov-commenter
Copy link

codecov-commenter commented Aug 28, 2020

Codecov Report

Merging #12624 into master will increase coverage by 0.01%.
The diff coverage is 0.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master   #12624      +/-   ##
==========================================
+ Coverage   43.43%   43.45%   +0.01%     
==========================================
  Files         645      645              
  Lines       71328    71328              
==========================================
+ Hits        30983    30995      +12     
+ Misses      35332    35324       -8     
+ Partials     5013     5009       -4     
Impacted Files Coverage Δ
cmd/serv.go 2.87% <0.00%> (ø)
modules/indexer/stats/db.go 52.17% <0.00%> (-8.70%) ⬇️
modules/git/utils.go 73.77% <0.00%> (-3.28%) ⬇️
modules/git/repo.go 49.23% <0.00%> (-0.51%) ⬇️
modules/queue/workerpool.go 60.00% <0.00%> (ø)
services/pull/pull.go 42.72% <0.00%> (+1.15%) ⬆️
modules/queue/unique_queue_disk_channel.go 55.38% <0.00%> (+1.53%) ⬆️
modules/process/manager.go 75.00% <0.00%> (+2.50%) ⬆️
models/unit.go 49.31% <0.00%> (+2.73%) ⬆️
services/pull/temp_repo.go 29.78% <0.00%> (+3.19%) ⬆️
... and 1 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 274f923...97fd9b0. Read the comment docs.

@GiteaBot GiteaBot added lgtm/need 1 This PR needs approval from one additional maintainer to be merged. and removed lgtm/need 2 This PR needs two approvals by maintainers to be considered for merging. labels Aug 28, 2020
@GiteaBot GiteaBot added lgtm/done This PR has enough approvals to get merged. There are no important open reservations anymore. and removed lgtm/need 1 This PR needs approval from one additional maintainer to be merged. labels Aug 28, 2020
@zeripath zeripath merged commit 7ba6fea into go-gitea:master Aug 28, 2020
@zeripath zeripath deleted the fix-12471-git-upload-pack-quoting branch August 28, 2020 19:56
zeripath added a commit to zeripath/gitea that referenced this pull request Aug 31, 2020
go-gitea#12624 missed lowering the provided repoPath.

(Additionally make a few fixes to the way the debug flag works.)

Fix go-gitea#12659
Fix go-gitea#12667

Signed-off-by: Andrew Thornton <art27@cantab.net>
zeripath added a commit that referenced this pull request Aug 31, 2020
#12624 missed lowering the provided repoPath.

(Additionally make a few fixes to the way the debug flag works.)

Fix #12659
Fix #12667

Signed-off-by: Andrew Thornton <art27@cantab.net>
@go-gitea go-gitea locked and limited conversation to collaborators Nov 24, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
lgtm/done This PR has enough approvals to get merged. There are no important open reservations anymore. type/bug
Projects
None yet
Development

Successfully merging this pull request may close these issues.

git-upload-pack strips leading / only when single-quoted
5 participants