From 1ff6125af74899dad390efa45aefa665f6cc76e9 Mon Sep 17 00:00:00 2001 From: Paul Menzel Date: Fri, 3 Jun 2022 08:31:18 +0200 Subject: =?UTF-8?q?util/release/build-release:=20Use=20`git=20log=20?= =?UTF-8?q?=E2=80=A6=20-1`=20over=20`|head=20-1`?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Avoid piping to `head` to print the top line, and do it in `git log` directly. Change-Id: Id9b99b06c5bdd9c381bd039fc1914a9a2f332aa6 Signed-off-by: Paul Menzel Reviewed-on: https://review.coreboot.org/c/coreboot/+/64941 Tested-by: build bot (Jenkins) Reviewed-by: Elyes Haouas Reviewed-by: Arthur Heymans --- util/release/build-release | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'util/release/build-release') diff --git a/util/release/build-release b/util/release/build-release index d4a9a1f5b8..b76b1559a3 100755 --- a/util/release/build-release +++ b/util/release/build-release @@ -66,7 +66,7 @@ else git tag -a --force "$VERSION_NAME" -m "coreboot version $VERSION_NAME" fi -printf "%s-%s\n" "$VERSION_NAME" "$(git log --pretty=%h|head -1)" > .coreboot-version +printf "%s-%s\n" "$VERSION_NAME" "$(git log --pretty=%h -1)" > .coreboot-version tstamp=$(git log --pretty=format:%ci -1) cd .. -- cgit v1.2.3