Build-agent refactored to work with git repositories.