mirror of
https://github.com/go-gitea/gitea.git
synced 2026-10-26 06:16:56 +09:00
Refactor git command context & pipeline (#36406)
Less and simpler code, fewer bugs
This commit is contained in:
1 parent
f6db180a80
commit
9ea91e036f
36 files changed
+286
-434
No files matched your search
@@ -174,7 +174,7 @@ func CreateBlameReader(ctx context.Context, objectFormat git.ObjectFormat, repo
|
||||
}
|
||||
go func() {
|
||||
// TODO: it doesn't work for directories (the directories shouldn't be "blamed"), and the "err" should be returned by "Read" but not by "Close"
|
||||
err := RunCmdWithStderr(ctx, repo, cmd.WithUseContextTimeout(true).WithStdout(stdout))
|
||||
err := RunCmdWithStderr(ctx, repo, cmd.WithStdout(stdout))
|
||||
done <- err
|
||||
_ = stdout.Close()
|
||||
}()
|
||||
|
||||
Reference in new issue
Block a user