aboutsummaryrefslogtreecommitdiffstats
path: root/plumbing/object/commit.go
diff options
context:
space:
mode:
authorNick Thomas <nick@gitlab.com>2017-03-27 12:30:40 +0100
committerNick Thomas <nick@gitlab.com>2017-03-27 20:09:40 +0100
commitce4ca45ab6ad1d2c2350e3fb3f91a00b000139cb (patch)
tree46f45b4b5b4d3de611776e372025edf8a6055370 /plumbing/object/commit.go
parentcfbd64f09f0d068d593f3dc3beb4ea7e62719e34 (diff)
downloadgo-git-ce4ca45ab6ad1d2c2350e3fb3f91a00b000139cb.tar.gz
plumbing: Use ReadBytes() rather than ReadSlice()
Diffstat (limited to 'plumbing/object/commit.go')
-rw-r--r--plumbing/object/commit.go2
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
}