aboutsummaryrefslogtreecommitdiffstats
path: root/repository/mock_repo.go
diff options
context:
space:
mode:
authorMichael Muré <batolettre@gmail.com>2021-02-09 10:46:33 +0100
committerMichael Muré <batolettre@gmail.com>2021-02-14 12:19:02 +0100
commit2bdb1b60ff83de157f1a0d9ed42555d96b945fa6 (patch)
treefe51b44176ac1c6d279f651efd7cc19bc8cae88a /repository/mock_repo.go
parent26a4b0332e0f0a52026ac6e333e0bbd78a588171 (diff)
downloadgit-bug-2bdb1b60ff83de157f1a0d9ed42555d96b945fa6.tar.gz
entity: working commit signatures
Diffstat (limited to 'repository/mock_repo.go')
-rw-r--r--repository/mock_repo.go2
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)
}