Actual diff from master that WFM: ```diff diff --git a/meson.build b/meson.build index ec3e509af..eacb73cb6 100644 --- a/meson.build +++ b/meson.build @@ -166,12 +166,14 @@ python = pymod.find_installation('python3', modules: doxygen.found() and get_opt rst2html = find_program('rst2html', required: get_option('html-docs')) rst2pdf = find_program('rst2pdf', required: get_option('pdf-docs')) git = find_program('git', required: false) +revision = '-1' if git.found() - ret = run_command(git, 'rev-parse', '--short', '--revs-only', 'HEAD', check: true) - cdata.set_quoted('REVISION', ret.stdout().strip()) -else - cdata.set_quoted('REVISION', '-1') + ret = run_command(git, 'rev-parse', '--short', '--revs-only', 'HEAD', check: false) + if ret.returncode() == 0 + revision = ret.stdout().strip() + endif endif +cdata.set_quoted('REVISION', revision) python_command = get_option('python-command') if python_command == '' or python_command == 'auto' ```
-- Reply to this email directly or view it on GitHub: https://github.com/geany/geany/pull/3578#issuecomment-1755473829 You are receiving this because you are subscribed to this thread. Message ID: <geany/geany/pull/3578/c1755473...@github.com>