Skip to content

Commit

Permalink
fix: Ignore .git files from C/C++ file suffix in branchname
Browse files Browse the repository at this point in the history
Backport of #67
  • Loading branch information
jidicula committed Dec 28, 2021
1 parent 67e3ba6 commit 3de0667
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ exit_code=0
# find all C/C++ files:
# h, H, hpp, hh, h++, hxx
# c, C, cpp, cc, c++, cxx
c_files=$(find "$CHECK_PATH" -regextype posix-egrep -regex '^.*\.((((c|C)(c|pp|xx|\+\+)?$)|((h|H)h?(pp|xx|\+\+)?$))|(ino|pde))$')
c_files=$(find "$CHECK_PATH" -name .git -prune -o -regextype posix-egrep -regex '^.*\.((((c|C)(c|pp|xx|\+\+)?$)|((h|H)h?(pp|xx|\+\+)?$))|(ino|pde))$' -print)

# check formatting in each C file
for file in $c_files; do
Expand Down

0 comments on commit 3de0667

Please sign in to comment.