diff options
| author | 2025-11-19 08:00:00 +0800 | |
|---|---|---|
| committer | 2025-11-19 08:00:00 +0800 | |
| commit | 9c8098c3420d98d5e20c1d29b8478d16ecb78d4e (patch) | |
| tree | 01b4fd6ddfa0c1b42c82738630b9277f43277a24 /loose.go | |
| parent | Add zlib test data (diff) | |
| signature | No signature | |
Our zlib ought to be read-only for now
Diffstat (limited to 'loose.go')
| -rw-r--r-- | loose.go | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -2,6 +2,7 @@ package furgit import ( "bytes" + stdzlib "compress/zlib" "fmt" "io" "os" @@ -201,7 +202,7 @@ func (repo *Repository) WriteLooseObject(obj Object) (Hash, error) { } var buf bytes.Buffer - zw := zlib.NewWriter(&buf) + zw := stdzlib.NewWriter(&buf) if _, err := zw.Write(raw); err != nil { return Hash{}, err } |
