From 68c8e111ae805f4b74a80419d699f18b12b0c75c Mon Sep 17 00:00:00 2001 From: Honglei Huang Date: Fri, 28 Nov 2025 09:21:12 +0800 Subject: [PATCH] rocr/format: Fix clang-format-diff.py path in format script (#1757) Update the format script to use absolute path for clang-format-diff.py instead of relative path. This ensures the script works correctly regardless of the current working directory when executed. - Change from './clang-format-diff.py' to '${root}/projects/rocr-runtime/clang-format-diff.py' - Improves script reliability and portability Signed-off-by: Honglei Huang --- projects/rocr-runtime/format | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/projects/rocr-runtime/format b/projects/rocr-runtime/format index 806004a750..e2976ba8a5 100644 --- a/projects/rocr-runtime/format +++ b/projects/rocr-runtime/format @@ -2,5 +2,5 @@ root=`git rev-parse --show-toplevel` pushd . > /dev/null cd $root -git diff -U0 HEAD^ | ./clang-format-diff.py -p1 -i -style=file +git diff -U0 HEAD^ | "${root}/projects/rocr-runtime/clang-format-diff.py" -p1 -i -style=file popd > /dev/null