From: qinxialei Date: Mon, 24 Jan 2022 20:57:21 +0000 (+0000) Subject: Unbundling-version-from-git X-Git-Tag: archive/raspbian/0.0_git20220314.bd99dbf-1+rpi1~1^2~1 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=f16e7cba26c012123f73ad0fe4e8414eb1fdec16;p=generate-ninja.git Unbundling-version-from-git Unbundling version from git Gbp-Pq: Name Unbundling-version-from-git.patch --- diff --git a/build/gen.py b/build/gen.py index ae9c40d..650e1e7 100755 --- a/build/gen.py +++ b/build/gen.py @@ -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: