From: Thomas Monjalon Date: Tue, 17 Jan 2017 14:24:20 +0000 (+0100) Subject: devtools: fix lookup commit fixing a fix of many commits X-Git-Tag: spdx-start~4761 X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=df2b82cabfd25bd795a7ecda08eab98e841e7a13;p=dpdk.git devtools: fix lookup commit fixing a fix of many commits There was a bug when looking at a commit fixing a commit which itself was fixing many commits: % devtools/git-log-fixes.sh 12ee45a36~..12ee45a36 devtools/git-log-fixes.sh: 96: local: 5499c1fc9baa: bad variable name In this case, the list of commits was not quoted in variable assignment. Signed-off-by: Thomas Monjalon --- diff --git a/devtools/git-log-fixes.sh b/devtools/git-log-fixes.sh index 4824c7f7ce..d590735bee 100755 --- a/devtools/git-log-fixes.sh +++ b/devtools/git-log-fixes.sh @@ -90,7 +90,7 @@ origin_version () # ... git rev-parse -q --verify $1 >&- || continue # get version of this bug origin local origver=$(commit_version $origin) - local roothashes=$(origin_filter $origin) + local roothashes="$(origin_filter $origin)" if [ -n "$roothashes" ] ; then # look chained fix of fix recursively local rootver="$(origin_version $roothashes)"