The $URL might already contain a ".git" suffix. Then $FULLNAME would end up having two ".git" extensions. Fix that.