Fix git blame not working correctly with submodules (#10114)
Thorsten Ball
created
This fixes #9958 by using the correct working directory in which to run
`git blame`.
This wasn't an issue for a single repository, because we could go from
`.git` one directory up, but it doesn't work for submodules.
Luckily there's a `workdir()` method on `self.repository` that does
exactly what we need.
In submodule:

Not in submodule:

Release Notes:
- N/A