Fixing bug where repos are cloned regardless of env
1 files changed, 5 insertions(+), 1 deletions(-) M vim/rebuild_bundle.py
M vim/rebuild_bundle.py +5 -1
@@ 83,6 83,7 @@ subprocess.call( os.chdir(BUNDLE_DIR) for path in plugin_paths: cmd = "git" + clone = True if isinstance(path, (list, tuple)): plug_url = path[0] for arg in path[1:]: @@ 98,10 99,13 @@ for path in plugin_paths: f"Skipping {path}, it's for env {value} and " f"currently in {BUILD_ENV}" ) - continue + clone = False else: plug_url = path + if not clone: + continue + dirname = os.path.split(plug_url)[1] dirname = dirname.replace(".git", "") if dirname.endswith(".vim"):