forgejo/modules/git
forgejo-backport-action a821eb9e0f [v11.0/forgejo] fix: parse change-id in the git commit header (#7887)
**Backport:** https://codeberg.org/forgejo/forgejo/pulls/7884

- `change-id` is a commit header set by [jj-vcs](https://jj-vcs.github.io/jj/). Modify the commit parser to consider this header to be a valid header, this in turn fixes the signature validation on git commits that contain this header.
- Resolves forgejo/forgejo#7836
- Added unit test.

Co-authored-by: Gusted <postmaster@gusted.xyz>
Reviewed-on: https://codeberg.org/forgejo/forgejo/pulls/7887
Reviewed-by: Gusted <gusted@noreply.codeberg.org>
Co-authored-by: forgejo-backport-action <forgejo-backport-action@noreply.codeberg.org>
Co-committed-by: forgejo-backport-action <forgejo-backport-action@noreply.codeberg.org>
2025-05-16 21:46:24 +00:00
..
foreachref [v11.0/forgejo] chore: branding import path (#7354) 2025-03-27 20:13:05 +00:00
internal
pipeline [v11.0/forgejo] chore: branding import path (#7354) 2025-03-27 20:13:05 +00:00
pushoptions
tests/repos [v11.0/forgejo] fix: use linguist-generated for language stats (#7694) 2025-04-28 06:52:28 +00:00
url
batch.go
batch_reader.go [v11.0/forgejo] chore: branding import path (#7354) 2025-03-27 20:13:05 +00:00
blame.go [v11.0/forgejo] chore: branding import path (#7354) 2025-03-27 20:13:05 +00:00
blame_sha256_test.go Update module github.com/golangci/golangci-lint/cmd/golangci-lint to v1.64.6 (forgejo) (#7118) 2025-03-04 21:38:35 +00:00
blame_test.go Update module github.com/golangci/golangci-lint/cmd/golangci-lint to v1.64.6 (forgejo) (#7118) 2025-03-04 21:38:35 +00:00
blob.go [v11.0/forgejo] chore: branding import path (#7354) 2025-03-27 20:13:05 +00:00
blob_test.go
command.go [v11.0/forgejo] chore: branding import path (#7354) 2025-03-27 20:13:05 +00:00
command_race_test.go
command_test.go Update module github.com/golangci/golangci-lint/cmd/golangci-lint to v1.64.6 (forgejo) (#7118) 2025-03-04 21:38:35 +00:00
commit.go [v11.0/forgejo] chore: branding import path (#7354) 2025-03-27 20:13:05 +00:00
commit_info.go [v11.0/forgejo] chore: branding import path (#7354) 2025-03-27 20:13:05 +00:00
commit_info_test.go Update module github.com/golangci/golangci-lint/cmd/golangci-lint to v1.64.6 (forgejo) (#7118) 2025-03-04 21:38:35 +00:00
commit_reader.go [v11.0/forgejo] fix: parse change-id in the git commit header (#7887) 2025-05-16 21:46:24 +00:00
commit_sha256_test.go
commit_test.go [v11.0/forgejo] fix: parse change-id in the git commit header (#7887) 2025-05-16 21:46:24 +00:00
diff.go [v11.0/forgejo] chore: branding import path (#7354) 2025-03-27 20:13:05 +00:00
diff_test.go
error.go [v11.0/forgejo] chore: branding import path (#7354) 2025-03-27 20:13:05 +00:00
git.go [v11.0/forgejo] chore: branding import path (#7354) 2025-03-27 20:13:05 +00:00
git_test.go [v11.0/forgejo] chore: branding import path (#7354) 2025-03-27 20:13:05 +00:00
grep.go [v11.0/forgejo] chore: branding import path (#7354) 2025-03-27 20:13:05 +00:00
grep_test.go Update module github.com/golangci/golangci-lint/cmd/golangci-lint to v1.64.6 (forgejo) (#7118) 2025-03-04 21:38:35 +00:00
hook.go [v11.0/forgejo] chore: branding import path (#7354) 2025-03-27 20:13:05 +00:00
last_commit_cache.go [v11.0/forgejo] chore: branding import path (#7354) 2025-03-27 20:13:05 +00:00
log_name_status.go [v11.0/forgejo] chore: branding import path (#7354) 2025-03-27 20:13:05 +00:00
notes.go [v11.0/forgejo] chore: branding import path (#7354) 2025-03-27 20:13:05 +00:00
notes_test.go [v11.0/forgejo] chore: branding import path (#7354) 2025-03-27 20:13:05 +00:00
object_format.go
object_id.go
object_id_test.go
object_signature.go
parse.go [v11.0/forgejo] chore: branding import path (#7354) 2025-03-27 20:13:05 +00:00
parse_test.go
README.md
ref.go [v11.0/forgejo] chore: branding import path (#7354) 2025-03-27 20:13:05 +00:00
ref_test.go Fix mirror bug (#33224) 2025-01-19 09:42:57 +01:00
remote.go [v11.0/forgejo] chore: branding import path (#7354) 2025-03-27 20:13:05 +00:00
repo.go [v11.0/forgejo] chore: branding import path (#7354) 2025-03-27 20:13:05 +00:00
repo_archive.go
repo_attribute.go [v11.0/forgejo] chore: branding import path (#7354) 2025-03-27 20:13:05 +00:00
repo_attribute_test.go [v11.0/forgejo] chore: branding import path (#7354) 2025-03-27 20:13:05 +00:00
repo_base.go [v11.0/forgejo] chore: branding import path (#7354) 2025-03-27 20:13:05 +00:00
repo_base_test.go Update module github.com/golangci/golangci-lint/cmd/golangci-lint to v1.64.6 (forgejo) (#7118) 2025-03-04 21:38:35 +00:00
repo_blame.go
repo_blob_test.go
repo_branch.go [v11.0/forgejo] chore: branding import path (#7354) 2025-03-27 20:13:05 +00:00
repo_branch_test.go
repo_commit.go [v11.0/forgejo] chore: branding import path (#7354) 2025-03-27 20:13:05 +00:00
repo_commit_test.go [v11.0/forgejo] chore: branding import path (#7354) 2025-03-27 20:13:05 +00:00
repo_commitgraph.go
repo_compare.go [v11.0/forgejo] chore: branding import path (#7354) 2025-03-27 20:13:05 +00:00
repo_compare_test.go
repo_gpg.go [v11.0/forgejo] chore: branding import path (#7354) 2025-03-27 20:13:05 +00:00
repo_hook.go
repo_index.go [v11.0/forgejo] chore: branding import path (#7354) 2025-03-27 20:13:05 +00:00
repo_language_stats.go [v11.0/forgejo] fix: use linguist-generated for language stats (#7694) 2025-04-28 06:52:28 +00:00
repo_language_stats_test.go [v11.0/forgejo] fix: use linguist-generated for language stats (#7694) 2025-04-28 06:52:28 +00:00
repo_object.go
repo_ref.go [v11.0/forgejo] chore: branding import path (#7354) 2025-03-27 20:13:05 +00:00
repo_ref_test.go
repo_stats.go [v11.0/forgejo] chore: branding import path (#7354) 2025-03-27 20:13:05 +00:00
repo_stats_test.go
repo_tag.go [v11.0/forgejo] chore: branding import path (#7354) 2025-03-27 20:13:05 +00:00
repo_tag_test.go chore: remove usages of sort.Sort (#6689) 2025-01-26 13:30:00 +00:00
repo_test.go Update module github.com/golangci/golangci-lint/cmd/golangci-lint to v1.64.6 (forgejo) (#7118) 2025-03-04 21:38:35 +00:00
repo_tree.go
signature.go [v11.0/forgejo] chore: branding import path (#7354) 2025-03-27 20:13:05 +00:00
signature_test.go
submodule.go
submodule_test.go
tag.go [v11.0/forgejo] chore: branding import path (#7354) 2025-03-27 20:13:05 +00:00
tag_test.go
tree.go Use gitrepo.GetTreePathLatestCommit to get file lastest commit instead from latest commit cache (#32987) 2025-01-05 12:13:48 +00:00
tree_blob.go
tree_entry.go [v11.0/forgejo] chore: branding import path (#7354) 2025-03-27 20:13:05 +00:00
tree_entry_mode.go
tree_test.go Use gitrepo.GetTreePathLatestCommit to get file lastest commit instead from latest commit cache (#32987) 2025-01-05 12:13:48 +00:00
utils.go chore: Remove LimitedReaderCloser 2025-01-31 10:43:29 +01:00
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.