gitea/modules/git
zeripath 858c35b731
Ensure BlameReaders close at end of request (#12102)
#11716 reports multiple git blame processes hanging around
this was thought to be due to timeouts, however on closer look this
appears to be due to the Close() function of the BlameReader hanging
with a blocked stdout pipe.

This PR fixes this Close function to:

* Cancel the context of the cmd
* Close the StdoutReader - ensuring that the output pipe is closed

Further it makes the context of the `git blame` command a child of the
request context - ensuring that even if Close() is not called, on
cancellation of the Request the blame is command will also be cancelled.

Fixes #11716
Closes #11727

Signed-off-by: Andrew Thornton <art27@cantab.net>
2020-07-01 14:01:17 +01:00
..
pipeline
tests/repos
blame_test.go Ensure BlameReaders close at end of request (#12102) 2020-07-01 14:01:17 +01:00
blame.go Ensure BlameReaders close at end of request (#12102) 2020-07-01 14:01:17 +01:00
blob_test.go
blob.go
cache.go
command_test.go
command.go Refactor Cron and merge dashboard tasks (#10745) 2020-05-16 19:31:38 -04:00
commit_archive.go
commit_info_test.go Add gitea-vet (#10948) 2020-04-05 07:20:50 +01:00
commit_info.go
commit_reader.go
commit_test.go
commit.go fix bug about can't skip commits base on base branch (#11555) 2020-06-24 20:40:52 +01:00
diff_test.go
diff.go
error.go Handle push rejection in branch and upload (#10854) 2020-03-28 01:13:18 -03:00
git_test.go
git.go Only write to global gitconfig if necessary (#11876) 2020-06-13 17:47:31 -04:00
hook.go
notes_test.go
notes.go
parse_test.go
parse.go
README.md
ref.go
repo_attribute.go
repo_blame.go
repo_blob_test.go
repo_blob.go
repo_branch_test.go
repo_branch.go
repo_commit_test.go
repo_commit.go Handle more pathological branch and tag names (#11843) 2020-06-11 19:49:47 -04:00
repo_commitgraph.go
repo_compare_test.go
repo_compare.go Fix numbr of files, total additions, and deletions (#11614) 2020-05-26 01:58:07 -04:00
repo_gpg.go
repo_hook.go
repo_index.go
repo_language_stats.go Use enry language type to detect special languages (#11974) 2020-06-19 15:24:03 +03:00
repo_object.go
repo_ref_test.go
repo_ref.go
repo_stats_test.go
repo_stats.go
repo_tag_test.go
repo_tag.go
repo_test.go
repo_tree.go
repo.go Handle push rejection in branch and upload (#10854) 2020-03-28 01:13:18 -03:00
sha1.go Fix issue with DiffIndex on initial commit (#11677) 2020-05-29 22:14:00 +01:00
signature.go
submodule_test.go Fix submodule paths when AppSubUrl is not root (#11098) 2020-04-22 11:34:50 +01:00
submodule.go Manage port in submodule refurl (#11305) 2020-05-07 11:25:52 -03:00
tag.go
tree_blob.go
tree_entry_test.go
tree_entry.go
tree.go
utils_test.go Fix ref links in issue overviews for tags (#8742) 2020-05-14 18:55:43 -04:00
utils.go Fix ref links in issue overviews for tags (#8742) 2020-05-14 18:55:43 -04:00

Git Module

This module is merged from https://github.com/go-gitea/git which is a Go module to access Git through shell commands. Now it's a part of gitea's main repository for easier pull request.