Skip to content
Snippets Groups Projects
Verified Commit c19a4b14 authored by Sébastien Villemot's avatar Sébastien Villemot
Browse files

Build system: don’t try to create TAGS file when not in a git working directory

(cherry picked from commit f9cd465f)
parent bb7648ad
No related branches found
No related tags found
No related merge requests found
Checking pipeline status
......@@ -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',
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment