]> git.proxmox.com Git - mirror_lxc.git/commitdiff
meson.build: strip newlines from git output
authorRamkumar Chinchani <rchincha@cisco.com>
Tue, 22 Nov 2022 18:20:10 +0000 (18:20 +0000)
committerRamkumar Chinchani <rchincha@cisco.com>
Tue, 22 Nov 2022 18:20:19 +0000 (18:20 +0000)
Fixes issue #4223

Signed-off-by: Ramkumar Chinchani <rchincha@cisco.com>
meson.build

index 78da3680a10d3dda39b79c3816f66cbd934a9111..cfc9b9713c3d2bd412e81af2ece7e275841fe9aa 100644 (file)
@@ -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