Added Checks for Bad Repos

I changed the git_loader class to the git_template class and added a
check for bad repo urls.