You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Apr 6, 2022. It is now read-only.
check_compliance.py: Avoid running 'git' before _main()
Running 'git rev-parse --show-toplevel' to set GIT_TOP before _main()
prevents any errors from it from being reported to GitHub, because the
GitHub connection hasn't been initialized yet.
If there's an error, the error reporting is currently broken as well,
because git() calls err(), which is defined at the end of the file.
Initialize GIT_TOP in _main() instead of at the top level, and use a
magic "<repo>" string to refer to the top-level repository directory
when setting the 'ComplianceTest.path_hint' class variables instead.
Discovered while working on some unrelated error reporting improvements.
Also move the ZEPHYR_BASE initialization to a better spot, next to other
global variables.
Signed-off-by: Ulf Magnusson <[email protected]>
0 commit comments