summaryrefslogtreecommitdiff
path: root/util/release
diff options
context:
space:
mode:
authorPaul Menzel <pmenzel@molgen.mpg.de>2022-06-03 08:31:18 +0200
committerFelix Held <felix-coreboot@felixheld.de>2022-07-06 19:21:35 +0000
commit1ff6125af74899dad390efa45aefa665f6cc76e9 (patch)
treed40273b00d5d4625425156aa53f4f7218e660b1e /util/release
parent22369a1fc2042868a4db009290056a266fc1b369 (diff)
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>
Diffstat (limited to 'util/release')
-rwxr-xr-xutil/release/build-release2
1 files changed, 1 insertions, 1 deletions
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 ..