diff options
author | Máximo Cuadros <mcuadros@gmail.com> | 2017-03-28 05:53:33 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-03-28 05:53:33 +0200 |
commit | 36c78b9d1b1eea682703fb1cbb0f4f3144354389 (patch) | |
tree | 4dcd7e9a7c466a269fc50ee43644d90238f00976 /plumbing/object/commit.go | |
parent | e190c37cf51a2a320cabd81b25057859ed689a3b (diff) | |
parent | ce4ca45ab6ad1d2c2350e3fb3f91a00b000139cb (diff) | |
download | go-git-36c78b9d1b1eea682703fb1cbb0f4f3144354389.tar.gz |
Merge pull request #314 from lupine/249-fix-bufio-buffer-full
plumbing: Use ReadBytes() rather than ReadSlice()
Diffstat (limited to 'plumbing/object/commit.go')
-rw-r--r-- | plumbing/object/commit.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/plumbing/object/commit.go b/plumbing/object/commit.go index fff4f53..7507bc7 100644 --- a/plumbing/object/commit.go +++ b/plumbing/object/commit.go @@ -130,7 +130,7 @@ func (c *Commit) Decode(o plumbing.EncodedObject) (err error) { var message bool for { - line, err := r.ReadSlice('\n') + line, err := r.ReadBytes('\n') if err != nil && err != io.EOF { return err } |