Improve error handling
Change to git protocol