mirror of
https://github.com/FreeRTOS/FreeRTOS-Kernel.git
synced 2025-10-14 08:47:45 -04:00
prune .git from versioning search (#561)
Co-authored-by: Archit Aggarwal <architag@amazon.com>
This commit is contained in:
parent
999e81e721
commit
2560a50a7b
1 changed files with 4 additions and 1 deletions
5
.github/scripts/versioning.py
vendored
5
.github/scripts/versioning.py
vendored
|
@ -69,7 +69,7 @@ def ask_yes_no_question(question):
|
|||
return answer
|
||||
|
||||
|
||||
def list_files_in_a_component(component, afr_path, exclude_dirs=[], ext_filter=['.c', '.h'], exclude_hidden=True):
|
||||
def list_files_in_a_component(component, afr_path, exclude_dirs=['.git'], ext_filter=['.c', '.h'], exclude_hidden=True):
|
||||
'''
|
||||
Returns a list of all the files in a component.
|
||||
'''
|
||||
|
@ -81,6 +81,9 @@ def list_files_in_a_component(component, afr_path, exclude_dirs=[], ext_filter=[
|
|||
if root in exclude_dirs:
|
||||
continue
|
||||
|
||||
# Prune excluded dirs
|
||||
dirs[:] = [d for d in dirs if d not in exclude_dirs]
|
||||
|
||||
for f in files:
|
||||
if exclude_hidden and f[0] == '.':
|
||||
continue
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue