Permalink
Browse files

Give props to Jon Skeet

Add link back to source Stack Overflow post for the CopyStream
method after obtaining permission from Jon Skeet to include in
LibGit2Sharp.
  • Loading branch information...
martinwoodward authored and nulltoken committed Feb 25, 2013
1 parent 82a86f2 commit e72a1a4e51089ce42f14f6d7a01b7fcd3a7da3fd
Showing with 3 additions and 0 deletions.
  1. +3 −0 LibGit2Sharp.Tests/BlobFixture.cs
@@ -70,6 +70,9 @@ public void CanReadBlobStream()
public static void CopyStream(Stream input, Stream output)
{
+ // Reused from the following Stack Overflow post with permission
+ // of Jon Skeet (obtained on 25 Feb 2013)
+ // http://stackoverflow.com/questions/411592/how-do-i-save-a-stream-to-a-file/411605#411605
var buffer = new byte[8*1024];
int len;
while ((len = input.Read(buffer, 0, buffer.Length)) > 0)

0 comments on commit e72a1a4

Please sign in to comment.