diff options
author | Chris Marchesi <chrism@vancluevertech.com> | 2018-08-16 19:39:38 -0700 |
---|---|---|
committer | Chris Marchesi <chrism@vancluevertech.com> | 2018-08-16 19:41:14 -0700 |
commit | b2edb6dc79ea19b881bb5104395186f9d8bf2966 (patch) | |
tree | 50fb70f1769db298a8b83e834aa6ba002a92c421 | |
parent | c9b2eac59cf97c9a20ea3e9e5ad9bdef6f1dc82b (diff) | |
download | go-git-b2edb6dc79ea19b881bb5104395186f9d8bf2966.tar.gz |
git: Remove old hash validation code
This will not work for a signed commit as with the GPG signature being a
part of the commit, the hash is now non-deterministic.
Verification of the commit is done through the validation of the
signature.
Signed-off-by: Chris Marchesi <chrism@vancluevertech.com>
-rw-r--r-- | worktree_commit_test.go | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/worktree_commit_test.go b/worktree_commit_test.go index 17a1293..823a886 100644 --- a/worktree_commit_test.go +++ b/worktree_commit_test.go @@ -140,8 +140,6 @@ func (s *WorktreeSuite) TestRemoveAndCommitAll(c *C) { } func (s *WorktreeSuite) TestCommitSign(c *C) { - // expectedHash := plumbing.NewHash("98c4ac7c29c913f7461eae06e024dc18e80d23a4") - fs := memfs.New() storage := memory.NewStorage() @@ -158,11 +156,8 @@ func (s *WorktreeSuite) TestCommitSign(c *C) { key := commitSignKey(c) hash, err := w.Commit("foo\n", &CommitOptions{Author: defaultSignature(), SignKey: key}) - // c.Assert(hash, Equals, expectedHash) c.Assert(err, IsNil) - // assertStorageStatus(c, r, 1, 1, 1, expectedHash) - // Verify the commit. pks := new(bytes.Buffer) pkw, err := armor.Encode(pks, openpgp.PublicKeyType, nil) |