aboutsummaryrefslogtreecommitdiffstats
path: root/plumbing/format/index/encoder.go
diff options
context:
space:
mode:
Diffstat (limited to 'plumbing/format/index/encoder.go')
-rw-r--r--plumbing/format/index/encoder.go3
1 files changed, 1 insertions, 2 deletions
diff --git a/plumbing/format/index/encoder.go b/plumbing/format/index/encoder.go
index a915378..fa2d814 100644
--- a/plumbing/format/index/encoder.go
+++ b/plumbing/format/index/encoder.go
@@ -2,7 +2,6 @@ package index
import (
"bytes"
- "crypto"
"errors"
"io"
"sort"
@@ -29,7 +28,7 @@ type Encoder struct {
// NewEncoder returns a new encoder that writes to w.
func NewEncoder(w io.Writer) *Encoder {
- h := hash.New(crypto.SHA1)
+ h := hash.New(hash.CryptoType)
mw := io.MultiWriter(w, h)
return &Encoder{mw, h}
}