Skip to content
Snippets Groups Projects
Commit 5b201a14 authored by Bastien Montagne's avatar Bastien Montagne
Browse files

Fix reversed bool logic in check for default paths usage in clang-format script.

parent 0352adeb
No related branches found
No related tags found
No related merge requests found
...@@ -162,7 +162,7 @@ def main(): ...@@ -162,7 +162,7 @@ def main():
args = argparse_create().parse_args() args = argparse_create().parse_args()
use_default_paths = bool(args.paths) use_default_paths = not bool(args.paths)
paths = compute_paths(args.paths) paths = compute_paths(args.paths)
print("Operating on:") print("Operating on:")
...@@ -177,7 +177,7 @@ def main(): ...@@ -177,7 +177,7 @@ def main():
# Always operate on all cmake files (when expanding tabs and no paths given). # Always operate on all cmake files (when expanding tabs and no paths given).
files_retab = [ files_retab = [
f for f in source_files_from_git("." if use_default_paths else paths) f for f in source_files_from_git((".",) if use_default_paths else paths)
if f.endswith(extensions_only_retab) if f.endswith(extensions_only_retab)
if f not in ignore_files if f not in ignore_files
] ]
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment