Revert "Restore JGIT 2.x stream."

This reverts commit 7ee8259f10775a99e3b36c54e03b89a3d8dea2b2 for the purpose of
making SDK work with GIT 3.x.
Adapt code to JGit 3.1