mirror of
https://github.com/FreeRTOS/FreeRTOS.git
synced 2025-09-15 11:42:12 +08:00
prune .git from versioning search (#561)
Co-authored-by: Archit Aggarwal <architag@amazon.com>
This commit is contained in:
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
|
||||
|
Reference in New Issue
Block a user