When the track-tags option of the git plugin is enabled, it generates a slimmed-down .git directory enough for git describe and git log to succeed.
However gnulib's git-version-gen script relies on git log . which doesn't work, and returns an error like
fatal: unable to read tree 1bdaa2ce628b458ab6a7c9e03023a9aed221cf75