# HG changeset patch # User Peter Sanchez # Date 1706553100 21600 # Mon Jan 29 12:31:40 2024 -0600 # Node ID f010826cec88b2dbe5d207c20e8185ae3689db56 # Parent 83f64203329cca0670f5bccf9d15bc928a3bdfbf Fixing bug where repos are cloned regardless of env diff --git a/vim/rebuild_bundle.py b/vim/rebuild_bundle.py --- a/vim/rebuild_bundle.py +++ b/vim/rebuild_bundle.py @@ -83,6 +83,7 @@ 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 @@ 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"):