- Because we wish to show the status of the old and new commit of a force push, ignore that the commit doesn't exist and return a commit with only its ID filled. This is enough to still show the CI status of this commit although the commit itself is no longer reachable. - Add unit test. - Add integration test. - Resolves forgejo/forgejo#9250 Reviewed-on: https://codeberg.org/forgejo/forgejo/pulls/9262 Reviewed-by: Earl Warren <earl-warren@noreply.codeberg.org> Co-authored-by: Gusted <postmaster@gusted.xyz> Co-committed-by: Gusted <postmaster@gusted.xyz> |
||
|---|---|---|
| .. | ||
| foreachref | ||
| internal | ||
| pipeline | ||
| pushoptions | ||
| tests/repos | ||
| url | ||
| batch.go | ||
| batch_reader.go | ||
| blame.go | ||
| blame_sha256_test.go | ||
| blame_test.go | ||
| blob.go | ||
| blob_test.go | ||
| command.go | ||
| command_race_test.go | ||
| command_test.go | ||
| commit.go | ||
| commit_info.go | ||
| commit_info_test.go | ||
| commit_reader.go | ||
| commit_sha256_test.go | ||
| commit_test.go | ||
| diff.go | ||
| diff_compare.go | ||
| diff_compare_test.go | ||
| diff_test.go | ||
| error.go | ||
| git.go | ||
| git_test.go | ||
| grep.go | ||
| grep_test.go | ||
| hook.go | ||
| last_commit_cache.go | ||
| log_name_status.go | ||
| notes.go | ||
| notes_test.go | ||
| object_format.go | ||
| object_id.go | ||
| object_id_test.go | ||
| object_signature.go | ||
| parse.go | ||
| parse_test.go | ||
| README.md | ||
| ref.go | ||
| ref_test.go | ||
| remote.go | ||
| repo.go | ||
| repo_archive.go | ||
| repo_attribute.go | ||
| repo_attribute_test.go | ||
| repo_base.go | ||
| repo_base_test.go | ||
| repo_blame.go | ||
| repo_blame_test.go | ||
| repo_blob_test.go | ||
| repo_branch.go | ||
| repo_branch_test.go | ||
| repo_commit.go | ||
| repo_commit_test.go | ||
| repo_commitgraph.go | ||
| repo_compare.go | ||
| repo_compare_test.go | ||
| repo_gpg.go | ||
| repo_hook.go | ||
| repo_index.go | ||
| repo_language_stats.go | ||
| repo_language_stats_test.go | ||
| repo_object.go | ||
| repo_ref.go | ||
| repo_ref_test.go | ||
| repo_stats.go | ||
| repo_stats_test.go | ||
| repo_tag.go | ||
| repo_tag_test.go | ||
| repo_test.go | ||
| repo_tree.go | ||
| signature.go | ||
| signature_test.go | ||
| submodule.go | ||
| submodule_test.go | ||
| tag.go | ||
| tag_test.go | ||
| tree.go | ||
| tree_blob.go | ||
| tree_entry.go | ||
| tree_entry_mode.go | ||
| tree_test.go | ||
| utils.go | ||
| utils_test.go | ||
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.