mirror of
https://gitee.com/xiaohuolufeihua/bizhang_-obav.git
synced 2026-05-21 09:22:18 +00:00
git: ignore git tags starting with 'ext/' when getting the version tag
Allows for external/extra tags
This commit is contained in:
@@ -65,7 +65,7 @@ def get_version():
|
||||
|
||||
if os.path.isdir(os.path.join(px4_dir, '.git')):
|
||||
# If inside a clone PX4 Firmware repository, get version from "git describe"
|
||||
cmd = 'git describe --abbrev=0 --tags'
|
||||
cmd = 'git describe --exclude ext/* --abbrev=0 --tags'
|
||||
try:
|
||||
version = subprocess.check_output(
|
||||
cmd, cwd=px4_dir, shell=True).decode().strip()
|
||||
|
||||
Reference in New Issue
Block a user