HPCC-15219 Reading files direct from git repos may truncate Reviewed-by: Gavin Halliday <ghalliday@hpccsystems.com>
@@ -93,7 +93,8 @@ public:
if (sizeRead < chunkSize)
{
buf.setLength(buf.length() - (chunkSize - sizeRead));
- break;
+ if (!sizeRead)
+ break;
}
pipe->closeOutput();