diff options
author | Máximo Cuadros <mcuadros@gmail.com> | 2023-02-28 23:47:00 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-02-28 23:47:00 +0100 |
commit | 2401659b649ff6d386383ec06c4b9d5290b2741c (patch) | |
tree | 1d14ac51034f021469322a0ea03ea20657f7df2d /plumbing/hash/hash.go | |
parent | 7ab4957732a817bada223e5c361f0c9753d9e40c (diff) | |
parent | bd33c95fc3cbe8c04dd084c22defd1aa3c3e43dc (diff) | |
download | go-git-2401659b649ff6d386383ec06c4b9d5290b2741c.tar.gz |
Merge pull request #688 from pjbgf/bump-sha1cd
Remove need to build with CGO
Diffstat (limited to 'plumbing/hash/hash.go')
-rw-r--r-- | plumbing/hash/hash.go | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/plumbing/hash/hash.go b/plumbing/hash/hash.go index fe3bf76..80e4b5f 100644 --- a/plumbing/hash/hash.go +++ b/plumbing/hash/hash.go @@ -7,7 +7,7 @@ import ( "fmt" "hash" - "github.com/pjbgf/sha1cd/cgo" + "github.com/pjbgf/sha1cd" ) // algos is a map of hash algorithms. @@ -20,9 +20,7 @@ func init() { // reset resets the default algos value. Can be used after running tests // that registers new algorithms to avoid side effects. func reset() { - // For performance reasons the cgo version of the collision - // detection algorithm is being used. - algos[crypto.SHA1] = cgo.New + algos[crypto.SHA1] = sha1cd.New } // RegisterHash allows for the hash algorithm used to be overriden. |