diff options
author | Máximo Cuadros <mcuadros@gmail.com> | 2015-10-23 02:26:15 +0200 |
---|---|---|
committer | Máximo Cuadros <mcuadros@gmail.com> | 2015-10-23 02:26:15 +0200 |
commit | e1d8866ffa78fa16d2f39b0ba5344a7269ee5371 (patch) | |
tree | 4602b0ca341187aad77048f807cde423af410554 /pktline | |
parent | 2275fa7d0c75d20103f90b0e1616937d5a9fc5e6 (diff) | |
download | go-git-e1d8866ffa78fa16d2f39b0ba5344a7269ee5371.tar.gz |
clients and remote: fetch implementation
Diffstat (limited to 'pktline')
-rw-r--r-- | pktline/decoder.go | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/pktline/decoder.go b/pktline/decoder.go index db3fd72..76be108 100644 --- a/pktline/decoder.go +++ b/pktline/decoder.go @@ -2,6 +2,7 @@ package pktline import ( "errors" + "fmt" "io" "strconv" ) @@ -25,9 +26,10 @@ func (d *Decoder) readLine() (string, error) { if _, err := d.r.Read(raw); err != nil { return "", err } - header, err := strconv.ParseInt(string(raw), 16, 16) if err != nil { + fmt.Println(err) + return "", ErrInvalidHeader } |