diff options
author | Filip Navara <filip.navara@gmail.com> | 2019-04-23 15:12:26 +0200 |
---|---|---|
committer | Filip Navara <filip.navara@gmail.com> | 2019-04-24 09:40:06 +0200 |
commit | 5630ac19fc41ba608700981531f941137a17c612 (patch) | |
tree | cd0f68d6886c2d1e9042cfd2bf2643952f711c75 /plumbing/format/commitgraph/encoder.go | |
parent | 5b30f0c466090923f4f821f05b94573f1336b633 (diff) | |
download | go-git-5630ac19fc41ba608700981531f941137a17c612.tar.gz |
Split OpenFileIndex into smaller functions
Signed-off-by: Filip Navara <filip.navara@gmail.com>
Diffstat (limited to 'plumbing/format/commitgraph/encoder.go')
-rw-r--r-- | plumbing/format/commitgraph/encoder.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/plumbing/format/commitgraph/encoder.go b/plumbing/format/commitgraph/encoder.go index a4c5ad3..b4a6978 100644 --- a/plumbing/format/commitgraph/encoder.go +++ b/plumbing/format/commitgraph/encoder.go @@ -107,7 +107,7 @@ func (e *Encoder) encodeChunkHeaders(chunkSignatures [][]byte, chunkSizes []uint }
offset += chunkSizes[i]
}
- if _, err = e.Write([]byte{0, 0, 0, 0}); err == nil {
+ if _, err = e.Write(lastSignature); err == nil {
err = binary.WriteUint64(e, offset)
}
return
|