gstreamer build fails if .git isn't in the expected place
Submitted by Alistair Buxton
If the .git directory is not at the top of the repository then this will fail.
There are multiple reasons why this might be the case: the repository might be a submodule of some other, or the working dir may have been checked out to a different place.
This also affects the meson build system, see:
And it also affects all gstreamer plugin repositories which use the common submodule.
The actual location of the .git directory can be found with:
git rev-parse --git-dir