gitea/modules/git
Giteabot 144648a4af
Fix `IsObjectExist` with gogit (#31790) (#31806)
Backport #31790 by @wolfogre

Fix #31271.

When gogit is enabled, `IsObjectExist` calls
`repo.gogitRepo.ResolveRevision`, which is not correct. It's for
checking references not objects, it could work with commit hash since
it's both a valid reference and a commit object, but it doesn't work
with blob objects.

So it causes #31271 because it reports that all blob objects do not
exist.

Co-authored-by: Jason Song <i@wolfogre.com>
2024-08-09 15:43:23 +07:00
..
foreachref
internal
pipeline Deduplicate lfs common code (#30704) 2024-04-26 02:53:30 +07:00
tests/repos
url
README.md
attribute.go
batch_reader.go Enable more `revive` linter rules (#30608) 2024-04-22 11:48:42 +07:00
blame.go Make sure git version&feature are always prepared (#30877) (#30879) 2024-05-07 02:07:33 +07:00
blame_sha256_test.go Add `TAGS` to `TEST_TAGS` and fix bugs found with gogit (#31791) (#31795) 2024-08-07 15:58:09 +07:00
blame_test.go
blob.go
blob_gogit.go
blob_nogogit.go
blob_test.go
command.go
command_race_test.go
command_test.go
commit.go Make sure git version&feature are always prepared (#30877) (#30879) 2024-05-07 02:07:33 +07:00
commit_convert_gogit.go
commit_info.go
commit_info_gogit.go
commit_info_nogogit.go
commit_info_test.go
commit_reader.go Enable more `revive` linter rules (#30608) 2024-04-22 11:48:42 +07:00
commit_sha256_test.go
commit_test.go Fix protected branch files detection on pre_receive hook (#31778) (#31796) 2024-08-08 03:08:30 +07:00
diff.go Fix protected branch files detection on pre_receive hook (#31778) (#31796) 2024-08-08 03:08:30 +07:00
diff_test.go
error.go
git.go Make sure git version&feature are always prepared (#30877) (#30879) 2024-05-07 02:07:33 +07:00
git_test.go
grep.go Improve grep search (#30843) (#30850) 2024-05-03 17:59:33 +07:00
grep_test.go Improve grep search (#30843) (#30850) 2024-05-03 17:59:33 +07:00
hook.go
last_commit_cache.go Refactor cache and disable go-chi cache (#30417) 2024-04-13 08:38:44 +07:00
last_commit_cache_gogit.go
last_commit_cache_nogogit.go
log_name_status.go
notes.go
notes_gogit.go
notes_nogogit.go
notes_test.go
object_format.go Make sure git version&feature are always prepared (#30877) (#30879) 2024-05-07 02:07:33 +07:00
object_id.go Make sure git version&feature are always prepared (#30877) (#30879) 2024-05-07 02:07:33 +07:00
object_id_gogit.go
object_id_test.go Fix incorrect object id hash function (#30708) 2024-04-26 09:49:48 +07:00
parse_gogit.go
parse_gogit_test.go
parse_nogogit.go
parse_nogogit_test.go
ref.go Update misspell to 0.5.1 and add `misspellings.csv` (#30573) 2024-04-27 08:03:49 +07:00
ref_test.go
remote.go Make sure git version&feature are always prepared (#30877) (#30879) 2024-05-07 02:07:33 +07:00
repo.go Make sure git version&feature are always prepared (#30877) (#30879) 2024-05-07 02:07:33 +07:00
repo_archive.go
repo_attribute.go
repo_attribute_test.go
repo_base_gogit.go Make sure git version&feature are always prepared (#30877) (#30879) 2024-05-07 02:07:33 +07:00
repo_base_nogogit.go Make sure git version&feature are always prepared (#30877) (#30879) 2024-05-07 02:07:33 +07:00
repo_blame.go
repo_blob.go
repo_blob_gogit.go
repo_blob_nogogit.go
repo_blob_test.go
repo_branch.go
repo_branch_gogit.go Fix `IsObjectExist` with gogit (#31790) (#31806) 2024-08-09 15:43:23 +07:00
repo_branch_nogogit.go Fix `IsObjectExist` with gogit (#31790) (#31806) 2024-08-09 15:43:23 +07:00
repo_branch_test.go Fix `IsObjectExist` with gogit (#31790) (#31806) 2024-08-09 15:43:23 +07:00
repo_commit.go Fix protected branch files detection on pre_receive hook (#31778) (#31796) 2024-08-08 03:08:30 +07:00
repo_commit_gogit.go
repo_commit_nogogit.go
repo_commit_test.go Fix protected branch files detection on pre_receive hook (#31778) (#31796) 2024-08-08 03:08:30 +07:00
repo_commitgraph.go Make sure git version&feature are always prepared (#30877) (#30879) 2024-05-07 02:07:33 +07:00
repo_commitgraph_gogit.go
repo_compare.go
repo_compare_test.go
repo_gpg.go
repo_hook.go
repo_index.go Fix slow patch checking with commits that add or remove many files (#31548) (#31560) 2024-07-05 11:24:01 +07:00
repo_language_stats.go
repo_language_stats_gogit.go
repo_language_stats_nogogit.go
repo_language_stats_test.go
repo_object.go
repo_ref.go
repo_ref_gogit.go
repo_ref_nogogit.go
repo_ref_test.go
repo_stats.go
repo_stats_test.go
repo_tag.go
repo_tag_gogit.go
repo_tag_nogogit.go
repo_tag_test.go
repo_test.go
repo_tree.go
repo_tree_gogit.go Add `TAGS` to `TEST_TAGS` and fix bugs found with gogit (#31791) (#31795) 2024-08-07 15:58:09 +07:00
repo_tree_nogogit.go
signature.go
signature_gogit.go
signature_nogogit.go
signature_test.go
submodule.go Enable more `revive` linter rules (#30608) 2024-04-22 11:48:42 +07:00
submodule_test.go
tag.go
tag_test.go
tree.go
tree_blob.go
tree_blob_gogit.go
tree_blob_nogogit.go
tree_entry.go
tree_entry_gogit.go
tree_entry_mode.go
tree_entry_nogogit.go
tree_entry_test.go
tree_gogit.go
tree_nogogit.go
tree_test.go
utils.go Refactor sha1 and time-limited code (#31023) (#31030) 2024-05-21 00:58:21 +07:00
utils_test.go Refactor sha1 and time-limited code (#31023) (#31030) 2024-05-21 00:58:21 +07:00

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.