From 5b201a1439b4dcf7695ec736d4ecd4c0e5f938a7 Mon Sep 17 00:00:00 2001
From: Bastien Montagne <montagne29@wanadoo.fr>
Date: Wed, 17 Apr 2019 12:24:04 +0200
Subject: [PATCH] Fix reversed bool logic in check for default paths usage in
 clang-format script.

---
 utils_maintenance/clang_format_paths.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/utils_maintenance/clang_format_paths.py b/utils_maintenance/clang_format_paths.py
index 967eecd..1ceabb7 100755
--- a/utils_maintenance/clang_format_paths.py
+++ b/utils_maintenance/clang_format_paths.py
@@ -162,7 +162,7 @@ def main():
 
     args = argparse_create().parse_args()
 
-    use_default_paths = bool(args.paths)
+    use_default_paths = not bool(args.paths)
 
     paths = compute_paths(args.paths)
     print("Operating on:")
@@ -177,7 +177,7 @@ def main():
 
     # Always operate on all cmake files (when expanding tabs and no paths given).
     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 not in ignore_files
     ]
-- 
GitLab