Can now redirect git output to object for api

Details:
 - CLI is now broken, but not for long.