diff options
author | Michael Muré <batolettre@gmail.com> | 2021-02-09 10:46:33 +0100 |
---|---|---|
committer | Michael Muré <batolettre@gmail.com> | 2021-02-14 12:19:02 +0100 |
commit | 2bdb1b60ff83de157f1a0d9ed42555d96b945fa6 (patch) | |
tree | fe51b44176ac1c6d279f651efd7cc19bc8cae88a /repository/mock_repo.go | |
parent | 26a4b0332e0f0a52026ac6e333e0bbd78a588171 (diff) | |
download | git-bug-2bdb1b60ff83de157f1a0d9ed42555d96b945fa6.tar.gz |
entity: working commit signatures
Diffstat (limited to 'repository/mock_repo.go')
-rw-r--r-- | repository/mock_repo.go | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/repository/mock_repo.go b/repository/mock_repo.go index 12cf375b..2749bfbd 100644 --- a/repository/mock_repo.go +++ b/repository/mock_repo.go @@ -299,6 +299,8 @@ func (r *mockRepoData) ReadCommit(hash Hash) (Commit, error) { } if c.sig != "" { + // Note: this is actually incorrect as the signed data should be the full commit (+comment, +date ...) + // but only the tree hash work for our purpose here. result.SignedData = strings.NewReader(string(c.treeHash)) result.Signature = strings.NewReader(c.sig) } |