From c19a4b14ddd685b5b869a310133795a20a05958c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Villemot?= <sebastien@dynare.org> Date: Wed, 3 Jan 2024 18:08:51 +0100 Subject: [PATCH] =?UTF-8?q?Build=20system:=20don=E2=80=99t=20try=20to=20cr?= =?UTF-8?q?eate=20TAGS=20file=20when=20not=20in=20a=20git=20working=20dire?= =?UTF-8?q?ctory?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit (cherry picked from commit f9cd465fea36b836b9a4365dc2e6d98411c3e8da) --- meson.build | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/meson.build b/meson.build index 1592670746..8109445275 100644 --- a/meson.build +++ b/meson.build @@ -1890,7 +1890,9 @@ endforeach git_exe = find_program('git', required : false) etags_exe = find_program('etags', required : false) -if git_exe.found() and etags_exe.found() +fs = import('fs') + +if fs.is_dir('.git') and git_exe.found() and etags_exe.found() all_files = run_command(git_exe, [ '--git-dir=@0@/.git'.format(meson.project_source_root()), 'ls-files', '--recurse-submodules', -- GitLab