Unbundling-version-from-git
authorqinxialei <xialeiqin@gmail.com>
Mon, 16 Jan 2023 11:40:16 +0000 (11:40 +0000)
committerRicardo Ribalda Delgado <ricardo@ribalda.com>
Mon, 16 Jan 2023 11:40:16 +0000 (11:40 +0000)
Unbundling version from git

Gbp-Pq: Name Unbundling-version-from-git.patch

build/gen.py

index 2d109ed6cf32a84aba433fb536070cd1ddd63b91..18ad20dd14cd3d42992772983d9f3f1c59ed4b68 100755 (executable)
@@ -218,7 +218,7 @@ def main(argv):
 def GenerateLastCommitPosition(host, header):
   ROOT_TAG = 'initial-commit'
   describe_output = subprocess.check_output(
-      ['git', 'describe', 'HEAD', '--abbrev=12', '--match', ROOT_TAG],
+      ['debian/gn-describe'],
       shell=host.is_windows(), cwd=REPO_ROOT)
   mo = re.match(ROOT_TAG + '-(\d+)-g([0-9a-f]+)', describe_output.decode())
   if not mo: