doctor: suppress warnings from git wrapper script

Fixes #28901.