If you run mkdir x && cd x && git init with geometry prompt, then you'll start seeing this error all the time:
fatal: ambiguous argument 'HEAD': unknown revision or path not in the working tree.
Use '--' to separate paths from revisions, like this:
'git <command> [<revision>...] -- [<file>...]'
It turns out that error is coming from running git diff-index --quiet HEAD in geometry_git_status and was introduced a few months ago. But that error is actually not a big deal; it's more like a warning given this use case. This commit silences that warning.
If you run
mkdir x && cd x && git init
with geometry prompt, then you'll start seeing this error all the time:It turns out that error is coming from running
git diff-index --quiet HEAD
ingeometry_git_status
and was introduced a few months ago. But that error is actually not a big deal; it's more like a warning given this use case. This commit silences that warning.