Commit Graph

5 Commits

Author SHA1 Message Date
Taylor Blau
0899760263 git: remove extraneous length check
`n`, representing the total number of bytes we have read into `p`, can never
become `>len(p)`. As such, let's remove a check for that impossible condition.
2016-11-22 10:57:18 -07:00
Lars Schneider
53fcd96c95 filter-process: fix reading 1024 byte files
If we read exactly the number of bytes that fit into `p` then
implementation detected already an "overfilled" buffer and returned
the number of read bytes `n` and `nil` as error.

Fix this by treading the exact number not as "overfill". This way the
next `readPacket()` call we will read an empty chunk and `read()` will
return the number of read bytes `n` and `o.EOF` as (legitmate) error.

c.f. https://github.com/git-lfs/git-lfs/issues/1697
2016-11-22 12:21:48 +01:00
risk danger olson
bba8f3b876 update package imports 2016-11-15 10:01:18 -07:00
Taylor Blau
021511a1a3 git/pr: data is determined from how much remaining space "p" has, not total 2016-11-10 14:54:09 -07:00
Taylor Blau
2188c26219 git/pr: 💅 2016-11-08 18:46:32 -07:00