Skip to content

Commit

Permalink
devtools: fix check of multiple commits fixed at once
Browse files Browse the repository at this point in the history
[ upstream commit dbee696 ]

When looking for fixes to backport,
only the first origin commit hash (from "Fixes:") was checked.
There is very little chance that the next commits being fixed
have a wrong hash in the commit log of the fix,
but it is fixed by checking them all before proceeding further.

Fixes: 752d8e0 ("scripts: show fixes with release version of bug")

Signed-off-by: Thomas Monjalon <[email protected]>
Acked-by: Luca Boccassi <[email protected]>
Acked-by: Kevin Traynor <[email protected]>
  • Loading branch information
tmonjalo authored and bluca committed Dec 1, 2024
1 parent fec1fb4 commit 07d2440
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion devtools/git-log-fixes.sh
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ origin_version () # <origin_hash> ...
{
for origin in $* ; do
# check hash is valid
git rev-parse -q --verify $1 >&- || continue
git rev-parse -q --verify $origin >&- || continue
# get version of this bug origin
local origver=$(commit_version $origin)
local roothashes="$(origin_filter $origin)"
Expand Down

0 comments on commit 07d2440

Please sign in to comment.