Skip to content

Commit bc297cf

Browse files
committed
build: Ignore format checks when downstreaming
1 parent a9f2052 commit bc297cf

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

scripts/check_code_format.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -301,6 +301,11 @@ def main():
301301
commit_message = check_output(['git', 'log', '--pretty="%h %s"', diff_range]).decode('utf-8')
302302
CPrint('CONTENT', "\nChecking commit: " + commit_message)
303303

304+
# Skip code format check if downstreaming
305+
if 'build: Downstream Vulkan-ValidationLayers':
306+
print('Skipping format check when downstreaming')
307+
exit(0)
308+
304309
subprocess.run(['git', 'checkout', '-q', commit])
305310

306311
# Get list of files involved in this commit

0 commit comments

Comments
 (0)