This error occurs probably when git is not installed, HOWEVER, by moving the .git directory into the protobufproj/python dir the problem is fixed because LocalEggInfo ( https://git.openstack.org/cgit/openstack-dev/pbr/tree/pbr/packaging.py#n510 ) has a specific callout for a .git which appears to short circuit some code that otherwise would call get_version.
I'm not exactly sure how that ends up happening, but that line in LocalEggInfo is the only place that seems to reference .git
this actually may be something of a red-herring, digging into the code it looks like `git rev-parse --git-dir` _is_ being used https:/ /git.openstack. org/cgit/ openstack- dev/pbr/ tree/pbr/ git.py# n70
This error occurs probably when git is not installed, HOWEVER, by moving the .git directory into the protobufproj/python dir the problem is fixed because LocalEggInfo ( https:/ /git.openstack. org/cgit/ openstack- dev/pbr/ tree/pbr/ packaging. py#n510 ) has a specific callout for a .git which appears to short circuit some code that otherwise would call get_version.
I'm not exactly sure how that ends up happening, but that line in LocalEggInfo is the only place that seems to reference .git