There is always a git executable on PATH due to the git wrapper in Library/Contributions/cmd. The wrapper will notify the user if there is not a real git installed.
Eventually we'll move Contributions to a tap too. Closes Homebrew/homebrew#30298.