From a587182982702c58efba6c796c0387e2ebd10fb4 Mon Sep 17 00:00:00 2001 From: jgmdev Date: Wed, 2 Mar 2022 18:55:46 -0400 Subject: [PATCH] meson: when running git rev-parse use HEAD instead of checking current branch name --- meson.build | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/meson.build b/meson.build index 2f26305d..3821e24c 100644 --- a/meson.build +++ b/meson.build @@ -18,11 +18,8 @@ if get_option('buildtype') != 'release' git_command = find_program('git', required : false) if git_command.found() - git_branch = run_command( - [git_command, 'branch', '--show-current'] - ).stdout().strip() git_commit = run_command( - [git_command, 'rev-parse', git_branch] + [git_command, 'rev-parse', 'HEAD'] ).stdout().strip() if git_commit != ''