aboutsummaryrefslogtreecommitdiffstats
path: root/plumbing/format/pktline/encoder.go
diff options
context:
space:
mode:
Diffstat (limited to 'plumbing/format/pktline/encoder.go')
-rw-r--r--plumbing/format/pktline/encoder.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/plumbing/format/pktline/encoder.go b/plumbing/format/pktline/encoder.go
index eae85cc..6d40979 100644
--- a/plumbing/format/pktline/encoder.go
+++ b/plumbing/format/pktline/encoder.go
@@ -17,6 +17,9 @@ type Encoder struct {
const (
// MaxPayloadSize is the maximum payload size of a pkt-line in bytes.
MaxPayloadSize = 65516
+
+ // For compatibility with canonical Git implementation, accept longer pkt-lines
+ OversizePayloadMax = 65520
)
var (