Unbundling-version-from-git
authorqinxialei <xialeiqin@gmail.com>
Mon, 21 Mar 2022 06:51:44 +0000 (06:51 +0000)
committerRicardo Ribalda Delgado <ricardo@ribalda.com>
Mon, 21 Mar 2022 06:51:44 +0000 (06:51 +0000)
Unbundling version from git

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

build/gen.py

index 5fd57833c3e6096adac392394280afda774a2cc6..5f7809a39c23c9e3b2b78b79845425ff09af2935 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: