From 29ddbc271889cc408e1aaac77e9cfa4ed68f5b63 Mon Sep 17 00:00:00 2001 From: "Benjamin A. Beasley" Date: Mon, 4 Mar 2024 08:05:57 -0500 Subject: [PATCH] Revert "F39+: Form short commit hash without a subshell" This reverts commit 2ae74ed7d3d86575dd386fc262e76d40cf3a9fb2. --- gn.spec | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gn.spec b/gn.spec index d0f3f36..877c95b 100644 --- a/gn.spec +++ b/gn.spec @@ -26,7 +26,7 @@ Name: gn # See https://gn.googlesource.com/gn/+log for the latest changes. %global commit 88e8054aff7bd0cb2295c7d9361d2be0b7355f27 %global access 20240301 -%global shortcommit %{sub %{commit} 1 12} +%global shortcommit %(c='%{commit}'; echo "${c:0:12}") %global position 2154 Version: %{position}^%{access}git%{shortcommit} Release: %autorelease