Primary Git Repository for the Zephyr Project. Zephyr is a new generation, scalable, optimized, secure RTOS for multiple hardware architectures.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

16 lines
395 B

import os
def crash_if_zephyr_was_cloned_with_wrong_line_endings():
f = open('{}/Kconfig'.format(os.environ["ZEPHYR_BASE"]), 'U')
f.readline()
error_msg = "Re-clone with autocrlf false. $ git config --global core.autocrlf false"
assert f.newlines == '\n', error_msg
def main():
crash_if_zephyr_was_cloned_with_wrong_line_endings()
if __name__ == "__main__":
main()