Skip to content

Commit ae27252

Browse files
authored
[Minor] Fix cpplint script:incorrect branch name (#1150)
Fix git error on Github Actions CI: ambiguous argument Relates-To: OLPEDGE-2451 Signed-off-by: Yaroslav Stefinko <[email protected]>
1 parent 6d77038 commit ae27252

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

scripts/misc/cpplint_ci.sh

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,9 @@ else
3535
printf "Currently in %s branch. Running cpplint.\n" "$CURRENT_BRANCH"
3636
fi
3737

38+
git branch --all
39+
git fetch origin master
40+
git branch --all
3841
# Get affected files and filter source files
3942
FILES=$(git diff-tree --no-commit-id --name-only -r origin/master "$CURRENT_BRANCH" \
4043
| grep '\.c\|\.cpp\|\.cxx\|\.h\|\.hpp\|\.hxx')
@@ -49,8 +52,8 @@ fi
4952
# Install cpplint tool using pip
5053
printf "Installing cpplint using pip\n\n"
5154

52-
pip install --user cpplint
53-
55+
pip3 install --user cpplint
56+
export PATH=$PATH:~/.local/bin/
5457
printf "\n\nRunning cpplint\n\n"
5558

5659
# Run the cpplint tool and collect all warnings

0 commit comments

Comments
 (0)