From 61a91af0ff27d637a4921ec7f80967d0a9fa6ec2 Mon Sep 17 00:00:00 2001 From: William Douglas Date: Thu, 1 Jun 2023 15:08:51 -0700 Subject: [PATCH] Fix logic for detecting new vendor Missing grouping in vendor .git changed caused detection failures. Signed-off-by: William Douglas --- vendor.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vendor.py b/vendor.py index d867ec8..23ab9a7 100755 --- a/vendor.py +++ b/vendor.py @@ -75,7 +75,7 @@ def update_cargo_vendor(path, name, git): subprocess.run(f"cp -a {backup_vendor_git} {vendor_git}", cwd=path, shell=True, check=True) repo = Repo(vendor_path) - if not len(repo.untracked_files) > 0 or repo.is_dirty(): + if not (len(repo.untracked_files) > 0 or repo.is_dirty()): return False subprocess.run('git add .', cwd=vendor_path, shell=True, check=True) subprocess.run('git commit -m "vendor update"', cwd=vendor_path,