[PATCH] Makefile.in: Only set git version if .git directory exists

Jan Maria Matejka jan.matejka at nic.cz
Thu May 3 11:23:41 CEST 2018


On 05/02/2018 06:43 PM, Toke Høiland-Jørgensen wrote:
> If Bird is compiled from a release tarball, but there is a git repository
> somewhere in a parent directory, the Makefile git version logic will pick
> up that version and use it as the Bird version, which is obviously not
> desirable> 
> For instance, on OpenWrt this results in something like this:
> BIRD version reboot-6789-g4e9ce23aa5

Thank you for reporting the bug and sending the patch! Anyway, it failed
with my config as I use multiple worktree configuration (where .git is only
a file containing the real gitdir path). I also fixed it for build
outside the workdir.


More information about the Bird-users mailing list