brew-test-bot: handle git repositories for upload.