From cefc35b0a0ea7e2d34c972242e0ebc7d8bfccabc Mon Sep 17 00:00:00 2001 From: qinxialei Date: Tue, 15 Aug 2023 13:48:39 +0100 Subject: [PATCH] Unbundling-version-from-git Unbundling version from git Gbp-Pq: Name Unbundling-version-from-git.patch --- build/gen.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build/gen.py b/build/gen.py index adb622a..66244f1 100755 --- a/build/gen.py +++ b/build/gen.py @@ -227,7 +227,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: -- 2.30.2