Remove unused code in git library.

@ussuri