1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39
|
From: Andrea Pappacoda <andrea@pappacoda.it>
Date: Fri, 27 Sep 2024 15:51:37 +0200
Subject: Never use git
Otherwise upstream's build system tries to perform git fetches and such.
Forwarded: not-needed
Last-Update: 2025-08-10
---
meson.build | 2 +-
subprojects/meson-tests/meson.build | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/meson.build b/meson.build
index 2fc356a..8e02d29 100644
--- a/meson.build
+++ b/meson.build
@@ -25,7 +25,7 @@ fs = import('fs')
# version information
-git = find_program('git', required: false)
+git = find_program('FAKE_GIT_COMMAND_ALWAYS_NOT_FOUND', required: false)
if git.found() and fs.is_dir('.git')
rev = run_command(git, 'rev-parse', '--short', 'HEAD', check: true)
git_sha = rev.stdout().strip()
diff --git a/subprojects/meson-tests/meson.build b/subprojects/meson-tests/meson.build
index 861e57b..19bdee6 100644
--- a/subprojects/meson-tests/meson.build
+++ b/subprojects/meson-tests/meson.build
@@ -4,7 +4,7 @@ fs = import('fs')
host_is_x86 = host_machine.cpu_family().startswith('x86')
-is_git_repo = fs.is_dir(meson.current_source_dir() / '.git')
+is_git_repo = false
tests = []
|