From 2020ef9770d6bdf4ed2d8a32595d0e70afd2db8f Mon Sep 17 00:00:00 2001 From: Anton Khirnov Date: Thu, 23 Nov 2023 10:10:16 +0100 Subject: [PATCH] tools/general_assembly: restore printing HEAD --- tools/general_assembly.pl | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/tools/general_assembly.pl b/tools/general_assembly.pl index 3bf65f3405..13c13bb28f 100755 --- a/tools/general_assembly.pl +++ b/tools/general_assembly.pl @@ -139,5 +139,7 @@ foreach my $name (sort keys %assembly) { my $out_str = join("\n", @out_lines) . "\n"; utf8::encode($out_str); -printf("# GA for $since/$until; %d people; SHA256:%s\n%s", - scalar @out_lines, Digest::SHA::sha256_hex($out_str), $out_str); +printf("# GA for $since/$until; %d people; SHA256:%s; HEAD:%s%s", + scalar @out_lines, Digest::SHA::sha256_hex($out_str), + decode('UTF-8', `git rev-parse HEAD`, Encode::FB_CROAK), + $out_str);