Unbundling-version-from-git
authorqinxialei <xialeiqin@gmail.com>
Thu, 28 Jan 2021 19:35:22 +0000 (19:35 +0000)
committerRicardo Ribalda Delgado <ricardo@ribalda.com>
Thu, 28 Jan 2021 19:35:22 +0000 (19:35 +0000)
Unbundling version from git

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

build/gen.py

index 922bf46fa5788ac751f9d5ceaf57b94b1f24eeaf..ab8b4115a2c6491b597cf8427566405b175d4f88 100755 (executable)
@@ -153,7 +153,7 @@ def main(argv):
 def GenerateLastCommitPosition(host, header):
   ROOT_TAG = 'initial-commit'
   describe_output = subprocess.check_output(
-      ['git', 'describe', 'HEAD', '--match', ROOT_TAG], shell=host.is_windows(),
+      ['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: