`make tests` fails on a fork of PX4-Autopilot


I have this fork of PX4-Autopilot that is up-to-date: GitHub - somebody-once-told-me/PX4-Autopilot: PX4 Autopilot Software

make tests fails when run on it. Head of the logs:

CMake Error at CMakeLists.txt:129 (list):
list index: 1 out of range (-1, 0)
CMake Error at CMakeLists.txt:131 (list):
list index: 2 out of range (-1, 0)
CMake Error at CMakeLists.txt:132 (string):
string sub-command REPLACE requires at least four arguments.

I just re-cloned the non-forked repo and make tests works.

The problem is that tags were missing after I forked PX4-Autopilot.

So I followed these instructions to get tags: version control - Upstream git tag is not showing in forked repository - Stack Overflow

Now make tests runs fine.