aboutsummaryrefslogtreecommitdiffstats
path: root/plumbing/format/commitgraph/encoder.go
diff options
context:
space:
mode:
authorFilip Navara <filip.navara@gmail.com>2019-04-23 15:12:26 +0200
committerFilip Navara <filip.navara@gmail.com>2019-04-24 09:40:06 +0200
commit5630ac19fc41ba608700981531f941137a17c612 (patch)
treecd0f68d6886c2d1e9042cfd2bf2643952f711c75 /plumbing/format/commitgraph/encoder.go
parent5b30f0c466090923f4f821f05b94573f1336b633 (diff)
downloadgo-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.go2
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