util/release/build-release: Use `git log … -1` over `|head -1`

Avoid piping to `head` to print the top line, and do it in `git log`
directly.

Change-Id: Id9b99b06c5bdd9c381bd039fc1914a9a2f332aa6
Signed-off-by: Paul Menzel <pmenzel@molgen.mpg.de>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/64941
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Elyes Haouas <ehaouas@noos.fr>
Reviewed-by: Arthur Heymans <arthur@aheymans.xyz>
This commit is contained in:
Paul Menzel 2022-06-03 08:31:18 +02:00 committed by Felix Held
parent 22369a1fc2
commit 1ff6125af7
1 changed files with 1 additions and 1 deletions

View File

@ -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 ..