From: Ondrej Mosnáček on gitlab.com https://gitlab.com/cki-project/kernel-ark/-/merge_requests/2105#note_1138000...
Correction: `--work-tree=.` would be more correct. While `--git-dir` also works, it specifies the path to the `.git` directory, not the "repository" root dir, which is what we really want to set.