mirror of
https://gitlab.alpinelinux.org/alpine/abuild.git
synced 2025-03-11 06:37:31 +00:00
abuild: make sure to not get colors in git_last_commit
git log may return color codes if users colored output forcibly enabled with: [color] ui = always Use `git rev-list` instead of `git log` to make sure that we don't get any color codes. fixes https://gitlab.alpinelinux.org/alpine/abuild/-/issues/10042
This commit is contained in:
parent
3d9918f14d
commit
1c00caaddb
@ -951,7 +951,7 @@ git_dirty() {
|
|||||||
|
|
||||||
# echo last commit hash id
|
# echo last commit hash id
|
||||||
git_last_commit() {
|
git_last_commit() {
|
||||||
$git log --format=oneline -n 1 -- "$startdir" | awk '{print $1}'
|
$git rev-list -n 1 HEAD -- "$startdir"
|
||||||
}
|
}
|
||||||
|
|
||||||
# date of last commit
|
# date of last commit
|
||||||
|
Loading…
Reference in New Issue
Block a user