aboutsummaryrefslogtreecommitdiffstats
path: root/formats/pktline/decoder.go
diff options
context:
space:
mode:
authorMáximo Cuadros <mcuadros@gmail.com>2016-08-15 03:51:04 +0200
committerMáximo Cuadros <mcuadros@gmail.com>2016-08-15 03:51:04 +0200
commitbcb49927a3897eadc29960032c70da29e26d6b58 (patch)
tree60025a0a59d15e49c6027b1bfd5d6fee5d5d2438 /formats/pktline/decoder.go
parentf6fe29c80d11662a169806dcf413ecdedcb28fa3 (diff)
downloadgo-git-bcb49927a3897eadc29960032c70da29e26d6b58.tar.gz
Repository.Clone and Remote.Fetch remote, local branches and client: correct header read
Diffstat (limited to 'formats/pktline/decoder.go')
-rw-r--r--formats/pktline/decoder.go2
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
}