]> git.ipfire.org Git - thirdparty/lxc.git/commitdiff
meson.build: strip newlines from git output 4224/head
authorRamkumar Chinchani <rchincha@cisco.com>
Tue, 22 Nov 2022 18:08:03 +0000 (18:08 +0000)
committerRamkumar Chinchani <rchincha@cisco.com>
Tue, 22 Nov 2022 18:08:11 +0000 (18:08 +0000)
Fixes issue #4223

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

index 93572975ebe4fcdfcd91fe769c5f6d2ca3ea6228..fe6808696849ce91836471990893c7b52c914a96 100644 (file)
@@ -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