From 8aac588663614d73ca833bea61f95623258476d5 Mon Sep 17 00:00:00 2001 From: Ramkumar Chinchani Date: Tue, 22 Nov 2022 18:20:10 +0000 Subject: [PATCH] meson.build: strip newlines from git output Fixes issue #4223 Signed-off-by: Ramkumar Chinchani --- meson.build | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/meson.build b/meson.build index 78da3680a..cfc9b9713 100644 --- a/meson.build +++ b/meson.build @@ -330,7 +330,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 -- 2.47.2