From f9cd465fea36b836b9a4365dc2e6d98411c3e8da 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 --- meson.build | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/meson.build b/meson.build index a44dc631ed..2b3d9fb0dc 100644 --- a/meson.build +++ b/meson.build @@ -1895,7 +1895,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