diff options
author | Máximo Cuadros <mcuadros@gmail.com> | 2016-08-15 03:51:04 +0200 |
---|---|---|
committer | Máximo Cuadros <mcuadros@gmail.com> | 2016-08-15 03:51:04 +0200 |
commit | bcb49927a3897eadc29960032c70da29e26d6b58 (patch) | |
tree | 60025a0a59d15e49c6027b1bfd5d6fee5d5d2438 /formats | |
parent | f6fe29c80d11662a169806dcf413ecdedcb28fa3 (diff) | |
download | go-git-bcb49927a3897eadc29960032c70da29e26d6b58.tar.gz |
Repository.Clone and Remote.Fetch remote, local branches and client: correct header read
Diffstat (limited to 'formats')
-rw-r--r-- | formats/pktline/decoder.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/formats/pktline/decoder.go b/formats/pktline/decoder.go index 34e6f51..789ba7d 100644 --- a/formats/pktline/decoder.go +++ b/formats/pktline/decoder.go @@ -32,7 +32,7 @@ func (d *Decoder) ReadLine() (string, error) { func (d *Decoder) readLine() (string, error) { raw := make([]byte, HeaderLength) - if _, err := d.r.Read(raw); err != nil { + if _, err := io.ReadFull(d.r, raw); err != nil { return "", err } |