gitea/modules/git
a1012112796 0d7afb02c0
response 404 for diff/patch of a commit that not exist () ()
* response 404 for diff/patch of a commit that not exist

fix 

Signed-off-by: a1012112796 <1012112796@qq.com>

* Update routers/repo/commit.go

Co-authored-by: silverwind <me@silverwind.io>

* use ctx.NotFound()

Co-authored-by: zeripath <art27@cantab.net>
Co-authored-by: silverwind <me@silverwind.io>

Co-authored-by: zeripath <art27@cantab.net>
Co-authored-by: silverwind <me@silverwind.io>
Co-authored-by: 6543 <6543@obermui.de>
..
pipeline Add basic repository lfs management ()
tests/repos Fix reading git notes from nested trees ()
README.md move code.gitea.io/git to code.gitea.io/gitea/modules/git ()
blame.go Prevent panic on git blame by limiting lines to 4096 bytes at most ()
blame_test.go Ensure BlameReaders close at end of request ()
blob.go Migrate to go-git/go-git v5.0.0 ()
blob_test.go Add Close() method to gogitRepository ()
cache.go Migrate to go-git/go-git v5.0.0 ()
command.go Always wait for the cmd to finish () ()
command_test.go Fix nondeterministic behavior ()
commit.go HasPreviousCommit causes recursive load of commits unnecessarily () ()
commit_archive.go Set context for running CreateArchive in to that of the request ()
commit_info.go Cache last commit when pushing for big repository ()
commit_info_test.go Re-attempt to delete temporary upload if the file is locked by another process ()
commit_reader.go Migrate to go-git/go-git v5.0.0 ()
commit_test.go move code.gitea.io/git to code.gitea.io/gitea/modules/git ()
diff.go response 404 for diff/patch of a commit that not exist () ()
diff_test.go Fix a couple of CommentAsPatch issues. () ()
error.go Handle push rejection in branch and upload ()
git.go Migrations: Use Process Manager to create own Context ()
git_test.go Graceful: Xorm, RepoIndexer, Cron and Others ()
hook.go Update golangci-lint to version 1.31.0 ()
notes.go Cache last commit when pushing for big repository ()
notes_test.go Add Close() method to gogitRepository ()
parse.go Migrate to go-git/go-git v5.0.0 ()
parse_test.go Migrate to go-git/go-git v5.0.0 ()
ref.go move code.gitea.io/git to code.gitea.io/gitea/modules/git ()
repo.go Migrations: Use Process Manager to create own Context ()
repo_attribute.go [Vendor] Switch go-version lib ()
repo_blame.go Removed unnecessary conversions ()
repo_blob.go Migrate to go-git/go-git v5.0.0 ()
repo_blob_test.go Add Close() method to gogitRepository ()
repo_branch.go Adopt repositories ()
repo_branch_test.go Add Close() method to gogitRepository ()
repo_commit.go Fix paging of file commit logs () ()
repo_commit_test.go Add Close() method to gogitRepository ()
repo_commitgraph.go Migrate to go-git/go-git v5.0.0 ()
repo_compare.go Git 2.28 no longer permits diff with ... on unrelated branches ()
repo_compare_test.go Re-attempt to delete temporary upload if the file is locked by another process ()
repo_gpg.go Sign merges, CRUD, Wiki and Repository initialisation with gpg key ()
repo_hook.go move code.gitea.io/git to code.gitea.io/gitea/modules/git ()
repo_index.go Be more strict with git arguments ()
repo_language_stats.go Speed up `enry.IsVendor` () ()
repo_object.go Fixes - API File Contents bug ()
repo_ref.go Migrate to go-git/go-git v5.0.0 ()
repo_ref_test.go Add Close() method to gogitRepository ()
repo_stats.go refactor repo_stats to use os.pipe ()
repo_stats_test.go Add top author stats to activity page ()
repo_tag.go [Vendor] Switch go-version lib ()
repo_tag_test.go Re-attempt to delete temporary upload if the file is locked by another process ()
repo_test.go Add Close() method to gogitRepository ()
repo_tree.go Add configurable Trust Models ()
sha1.go Fix issue with DiffIndex on initial commit ()
signature.go Migrate to go-git/go-git v5.0.0 ()
submodule.go Compare SSH_DOMAIN when parsing submodule URLs ()
submodule_test.go Compare SSH_DOMAIN when parsing submodule URLs ()
tag.go Fixes - Adds the /git/tags API endpoint ()
tree.go Migrate to go-git/go-git v5.0.0 ()
tree_blob.go Fix 500 on README in submodule ()
tree_entry.go Migrate to go-git/go-git v5.0.0 ()
tree_entry_test.go Migrate to go-git/go-git v5.0.0 ()
utils.go Fix ref links in issue overviews for tags ()
utils_test.go Fix ref links in issue overviews for tags ()

README.md

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.