From 7d50f85b1336a2799d21291a60d4ff2f85e2d91f Mon Sep 17 00:00:00 2001 From: Patrick Nicolas Date: Sat, 8 Feb 2025 14:28:44 +0100 Subject: [PATCH] Fix flatpak manifest generation for CI --- tools/gen_flatpak_manifest.py | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/tools/gen_flatpak_manifest.py b/tools/gen_flatpak_manifest.py index 19edaa6f..d879f40f 100755 --- a/tools/gen_flatpak_manifest.py +++ b/tools/gen_flatpak_manifest.py @@ -47,14 +47,17 @@ if __name__ == "__main__": try: git_commit = subprocess.check_output( - ["git", "describe", "--exact-match", "--tags"] + ["git", "describe", "--exact-match", "--tags"], + cwd=root ).decode().strip() except subprocess.CalledProcessError: git_commit = subprocess.check_output( - ["git", "rev-parse", "HEAD"] + ["git", "rev-parse", "HEAD"], + cwd=root ).decode().strip() git_desc = subprocess.check_output( - ["git", "describe", "--tags", "--always"] + ["git", "describe", "--tags", "--always"], + cwd=root ).decode().strip() if args.git or args.gitlocal: