You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gitea/modules/git
zeripath 4979f15c3f
Add configurable Trust Models (#11712)
* Add configurable Trust Models

Gitea's default signature verification model differs from GitHub. GitHub
uses signatures to verify that the committer is who they say they are -
meaning that when GitHub makes a signed commit it must be the committer.
The GitHub model prevents re-publishing of commits after revocation of a
key and prevents re-signing of other people's commits to create a
completely trusted repository signed by one key or a set of trusted
keys.

The default behaviour of Gitea in contrast is to always display the
avatar and information related to a signature. This allows signatures to
be decoupled from the committer. That being said, allowing arbitary
users to present other peoples commits as theirs is not necessarily
desired therefore we have a trust model whereby signatures from
collaborators are marked trusted, signatures matching the commit line
are marked untrusted and signatures that match a user in the db but not
the committer line are marked unmatched.

The problem with this model is that this conflicts with Github therefore
we need to provide an option to allow users to choose the Github model
should they wish to.

Signed-off-by: Andrew Thornton <art27@cantab.net>

* Adjust locale strings

Signed-off-by: Andrew Thornton <art27@cantab.net>

* as per @6543

Co-authored-by: 6543 <6543@obermui.de>

* Update models/gpg_key.go

* Add migration for repository

Signed-off-by: Andrew Thornton <art27@cantab.net>

Co-authored-by: 6543 <6543@obermui.de>
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
4 years ago
..
pipeline Add basic repository lfs management (#7199) 5 years ago
tests/repos Fix reading git notes from nested trees (#8026) 5 years ago
README.md move code.gitea.io/git to code.gitea.io/gitea/modules/git (#6364) 6 years ago
blame.go Ensure BlameReaders close at end of request (#12102) 5 years ago
blame_test.go Ensure BlameReaders close at end of request (#12102) 5 years ago
blob.go Migrate to go-git/go-git v5.0.0 (#10735) 5 years ago
blob_test.go Add Close() method to gogitRepository (#8901) 5 years ago
cache.go Migrate to go-git/go-git v5.0.0 (#10735) 5 years ago
command.go refactor repo_stats to use os.pipe (#11726) 4 years ago
command_test.go Fix nondeterministic behavior (#9341) 5 years ago
commit.go [Vendor] Switch go-version lib (#12719) 4 years ago
commit_archive.go Set context for running CreateArchive in to that of the request (#12555) 5 years ago
commit_info.go Migrate to go-git/go-git v5.0.0 (#10735) 5 years ago
commit_info_test.go Re-attempt to delete temporary upload if the file is locked by another process (#12447) 5 years ago
commit_reader.go Migrate to go-git/go-git v5.0.0 (#10735) 5 years ago
commit_test.go move code.gitea.io/git to code.gitea.io/gitea/modules/git (#6364) 6 years ago
diff.go Some refactor on git diff and ignore getting commit information failed on migrating pull request review comments (#9996) 5 years ago
diff_test.go Some refactor on git diff and ignore getting commit information failed on migrating pull request review comments (#9996) 5 years ago
error.go Handle push rejection in branch and upload (#10854) 5 years ago
git.go [Vendor] Switch go-version lib (#12719) 4 years ago
git_test.go Graceful: Xorm, RepoIndexer, Cron and Others (#9282) 5 years ago
hook.go fix typos (#12545) 5 years ago
notes.go Migrate to go-git/go-git v5.0.0 (#10735) 5 years ago
notes_test.go Add Close() method to gogitRepository (#8901) 5 years ago
parse.go Migrate to go-git/go-git v5.0.0 (#10735) 5 years ago
parse_test.go Migrate to go-git/go-git v5.0.0 (#10735) 5 years ago
ref.go move code.gitea.io/git to code.gitea.io/gitea/modules/git (#6364) 6 years ago
repo.go Handle push rejection in branch and upload (#10854) 5 years ago
repo_attribute.go [Vendor] Switch go-version lib (#12719) 4 years ago
repo_blame.go Removed unnecessary conversions (#7557) 6 years ago
repo_blob.go Migrate to go-git/go-git v5.0.0 (#10735) 5 years ago
repo_blob_test.go Add Close() method to gogitRepository (#8901) 5 years ago
repo_branch.go Migrate to go-git/go-git v5.0.0 (#10735) 5 years ago
repo_branch_test.go Add Close() method to gogitRepository (#8901) 5 years ago
repo_commit.go [Vendor] Switch go-version lib (#12719) 4 years ago
repo_commit_test.go Add Close() method to gogitRepository (#8901) 5 years ago
repo_commitgraph.go Migrate to go-git/go-git v5.0.0 (#10735) 5 years ago
repo_compare.go Git 2.28 no longer permits diff with ... on unrelated branches (#12364) 5 years ago
repo_compare_test.go Re-attempt to delete temporary upload if the file is locked by another process (#12447) 5 years ago
repo_gpg.go Sign merges, CRUD, Wiki and Repository initialisation with gpg key (#7631) 5 years ago
repo_hook.go move code.gitea.io/git to code.gitea.io/gitea/modules/git (#6364) 6 years ago
repo_index.go Be more strict with git arguments (#7715) 6 years ago
repo_language_stats.go Use enry language type to detect special languages (#11974) 5 years ago
repo_object.go Fixes #7292 - API File Contents bug (#7301) 6 years ago
repo_ref.go Migrate to go-git/go-git v5.0.0 (#10735) 5 years ago
repo_ref_test.go Add Close() method to gogitRepository (#8901) 5 years ago
repo_stats.go refactor repo_stats to use os.pipe (#11726) 4 years ago
repo_stats_test.go Add top author stats to activity page (#9615) 5 years ago
repo_tag.go [Vendor] Switch go-version lib (#12719) 4 years ago
repo_tag_test.go Re-attempt to delete temporary upload if the file is locked by another process (#12447) 5 years ago
repo_test.go Add Close() method to gogitRepository (#8901) 5 years ago
repo_tree.go Add configurable Trust Models (#11712) 4 years ago
sha1.go Fix issue with DiffIndex on initial commit (#11677) 5 years ago
signature.go Migrate to go-git/go-git v5.0.0 (#10735) 5 years ago
submodule.go Compare SSH_DOMAIN when parsing submodule URLs (#12753) 4 years ago
submodule_test.go Compare SSH_DOMAIN when parsing submodule URLs (#12753) 4 years ago
tag.go Fixes #2738 - Adds the /git/tags API endpoint (#7138) 6 years ago
tree.go Migrate to go-git/go-git v5.0.0 (#10735) 5 years ago
tree_blob.go Migrate to go-git/go-git v5.0.0 (#10735) 5 years ago
tree_entry.go Migrate to go-git/go-git v5.0.0 (#10735) 5 years ago
tree_entry_test.go Migrate to go-git/go-git v5.0.0 (#10735) 5 years ago
utils.go Fix ref links in issue overviews for tags (#8742) 5 years ago
utils_test.go Fix ref links in issue overviews for tags (#8742) 5 years ago

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.