shallow: add repository argument to is_repository_shallow