From: Ramkumar Chinchani Date: Tue, 22 Nov 2022 18:08:03 +0000 (+0000) Subject: meson.build: strip newlines from git output X-Git-Tag: lxc-5.0.2~51^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d5600cf76a4d932a03ea75aea6dd6c997a4e2f35;p=thirdparty%2Flxc.git meson.build: strip newlines from git output Fixes issue #4223 Signed-off-by: Ramkumar Chinchani --- diff --git a/meson.build b/meson.build index 93572975e..fe6808696 100644 --- a/meson.build +++ b/meson.build @@ -324,7 +324,7 @@ if time_epoch == '' and git.found() and run_command('test', '-e', '.git', check: # If we're in a git repository, use the creation time of the latest git tag. latest_tag = run_command(git, 'describe', '--abbrev=0', '--tags', check: false).stdout().strip() if latest_tag != '' - time_epoch = run_command(git, 'log', '--no-show-signature', '-1', '--format=%at', latest_tag, check: true).stdout() + time_epoch = run_command(git, 'log', '--no-show-signature', '-1', '--format=%at', latest_tag, check: true).stdout().strip() endif endif