#1134504 want way to suppress "warning: You appear to have cloned an empty repository"

Package:
git
Source:
git
Description:
fast, scalable, distributed revision control system
Submitter:
Ian Jackson
Date:
2026-04-20 22:39:02 UTC
Severity:
normal
#1134504#5
Date:
2026-04-20 22:37:04 UTC
From:
To:
In a particular situation[1], we have code that wants to handle
existing and nonexisting repositories similarly; we do this by creaing
an empty repository if necessary.

This leads to this message
  warning: You appear to have cloned an empty repository
from
  git clone -l -q --mirror /path/to/repository

I looked in the manpages for git-clone, git-config and git(1),
searching for various keywords, and didn't see any way to suppress
this warning.

Could there be one, please?

Thanks,
Ian.