title: git diff --cached: unknown option `cached'
body: <p>Within a Git worktree directory within a Docker container, I'm getting the error <code>error: unknown option `cached'</code> when running <code>git diff --cached</code>.</p>
  <p>Git is on version 2.32.0 which clearly states it should exist.</p>
  <p>When switching back to the main repository and mounting it in the container, the command works fine.</p>
  <p>What's going on here?</p>