diff --git a/build/gen.py b/build/gen.py index 2d109ed..18ad20d 100755 --- a/build/gen.py +++ b/build/gen.py @@ -218,7 +218,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: