summaryrefslogtreecommitdiffstats
path: root/.gitattributes
diff options
context:
space:
mode:
authorDmitry Neverov <dmitry.neverov@gmail.com>2010-06-30 10:46:53 -0700
committerShawn O. Pearce <spearce@spearce.org>2010-06-30 10:48:44 -0700
commit44854741c573fa8d0743c0cc7dd73323245b4b5b (patch)
tree2dd9b3f59540d6046c0cb6bd88f8b928c5385964 /.gitattributes
parent9f2249bd26199f6b79b72bff8328e18a0935191b (diff)
downloadjgit-44854741c573fa8d0743c0cc7dd73323245b4b5b.tar.gz
jgit-44854741c573fa8d0743c0cc7dd73323245b4b5b.zip
Fix missing flush in StreamCopyThread
It is possible that StreamCopyThread will not flush everything from it's src to it's dst. In most cases StreamCopyThread works like this: in loop: n = src.read(buf); dst.write(buf, 0, n); and when we want to flush, we interrupt() StreamCopyThread and it flushes everything it wrote to dst. The problem is that our interrupt() could interrupt reading. In this case we will flush everything we wrote to dst, but not everything we wrote to src. Change-Id: Ifaf4d8be87535c7364dd59b217dfc631460018ff Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
Diffstat (limited to '.gitattributes')
0 files changed, 0 insertions, 0 deletions