Added some ifs in case some silly goose doesn't provide a valid git repo URL