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:
parent
22369a1fc2
commit
1ff6125af7
|
@ -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 ..
|
||||
|
||||
|
|
Loading…
Reference in New Issue