Unbundling-version-from-git
authorqinxialei <xialeiqin@gmail.com>
Mon, 24 Jan 2022 20:57:21 +0000 (20:57 +0000)
committerBoyuan Yang <byang@debian.org>
Mon, 24 Jan 2022 20:57:21 +0000 (20:57 +0000)
Unbundling version from git

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

build/gen.py

index ae9c40de8aa9d720d6c1aa332a532798859301e2..650e1e75a65f5e68b7e496544da9a5223701ad4c 100755 (executable)
@@ -215,7 +215,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: