gstreamer build fails if .git isn't in the expected place
Submitted by Alistair Buxton
Link to original bug (#789596)
Description
Because of:
https://cgit.freedesktop.org/gstreamer/gstreamer/tree/autogen.sh#n37
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:
https://cgit.freedesktop.org/gstreamer/gstreamer/tree/meson.build#n454
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