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

Always use git command but not os.Command #18363

Merged
merged 4 commits into from
Jan 23, 2022

Conversation

lunny
Copy link
Member

@lunny lunny commented Jan 22, 2022

No description provided.

@lunny lunny added the type/refactoring Existing code has been cleaned up. There should be no new functionality. label Jan 22, 2022
@GiteaBot GiteaBot added the lgtm/need 1 This PR needs approval from one additional maintainer to be merged. label Jan 22, 2022
@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 Jan 22, 2022
@6543 6543 added this to the 1.17.0 milestone Jan 22, 2022
@codecov-commenter
Copy link

Codecov Report

❗ No coverage uploaded for pull request base (main@f066b29). Click here to learn what that means.
The diff coverage is 81.81%.

Impacted file tree graph

@@           Coverage Diff           @@
##             main   #18363   +/-   ##
=======================================
  Coverage        ?   46.06%           
=======================================
  Files           ?      838           
  Lines           ?    92730           
  Branches        ?        0           
=======================================
  Hits            ?    42713           
  Misses          ?    43233           
  Partials        ?     6784           
Impacted Files Coverage Δ
modules/git/diff.go 80.64% <71.42%> (ø)
services/gitdiff/gitdiff.go 73.59% <85.00%> (ø)
routers/web/repo/http.go 55.83% <90.00%> (ø)

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 f066b29...000b9d2. Read the comment docs.

@techknowlogick techknowlogick merged commit 35fdefc into go-gitea:main Jan 23, 2022
@lunny lunny deleted the lunny/git_command branch January 23, 2022 06:44
lunny pushed a commit to Gusted/gitea that referenced this pull request Jan 23, 2022
- Pass the Global command args into serviceRPC.
- Fixes error with partial cloning.
zjjhot pushed a commit to zjjhot/gitea that referenced this pull request Jan 23, 2022
* 'main' of https://github.com/go-gitea/gitea:
  Add packagist webhook (go-gitea#18224)
  Fix mime-type detection for HTTP server (go-gitea#18370)
  Always use git command but not os.Command (go-gitea#18363)
  Add deprecated for LFS_CONTENT_PATH on zh-cn docs (go-gitea#18362)
  [skip ci] Updated translations via Crowdin
  Make gitea, gitea-vet future-proof (go-gitea#18361)
  Pause queues (go-gitea#15928)
  Disable content sniffing on `PlainTextBytes` (go-gitea#18359)
  Update github.com/duo-labs/webauthn (go-gitea#18357)
return nil, fmt.Errorf("error creating StdoutPipe: %w", err)
}
go func(ctx context.Context, diffArgs []string, repoPath string, writer *io.PipeWriter) {
cmd := git.NewCommandContextNoGlobals(ctx, diffArgs...)
Copy link
Contributor

@zeripath zeripath Jan 23, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This needs to be NewCommandContext too. no it doesn't sorry Actually I'm really not sure about this.

I have a feeling that this should be NewCommandContext and we need to create our own lfs.filter.

Chianina pushed a commit to Chianina/gitea that referenced this pull request Mar 28, 2022
@go-gitea go-gitea locked and limited conversation to collaborators Apr 28, 2022
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/refactoring Existing code has been cleaned up. There should be no new functionality.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

8 participants