mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-26 02:03:34 +08:00
NuttX/nuttx got tagged and broke git version version exraction
This is part one of a fix for cascading failure. The NuttX nuttx repos was tagged with upstream_7.18+ and broke the tag extraction that was expecting nuttx-M.mm
This commit is contained in:
@@ -23,7 +23,7 @@ try:
|
|||||||
except:
|
except:
|
||||||
git_branch_name = ''
|
git_branch_name = ''
|
||||||
git_version_short = git_version[0:16]
|
git_version_short = git_version[0:16]
|
||||||
nuttx_git_tag = subprocess.check_output('git describe --always --tags --dirty'.split(),
|
nuttx_git_tag = subprocess.check_output('git describe --always --tags --match nuttx-* --dirty'.split(),
|
||||||
cwd='NuttX/nuttx', stderr=subprocess.STDOUT).decode('utf-8').strip().replace("nuttx-","v")
|
cwd='NuttX/nuttx', stderr=subprocess.STDOUT).decode('utf-8').strip().replace("nuttx-","v")
|
||||||
nuttx_git_tag = re.sub('-.*','.0',nuttx_git_tag)
|
nuttx_git_tag = re.sub('-.*','.0',nuttx_git_tag)
|
||||||
nuttx_git_version = subprocess.check_output('git rev-parse --verify HEAD'.split(),
|
nuttx_git_version = subprocess.check_output('git rev-parse --verify HEAD'.split(),
|
||||||
|
|||||||
Reference in New Issue
Block a user