mirror of
https://github.com/Stone-Red-Code/dvc.git
synced 2026-11-02 07:18:25 +01:00
exp run: fix failure when dependencies are from inside submodules (#10832)
This commit is contained in:
+4
-1
@@ -305,7 +305,10 @@ def add_no_submodules(
|
||||
|
||||
for p in paths:
|
||||
abs_path = os.path.abspath(p)
|
||||
if abs_path in submodule_roots or abs_path.startswith(tuple(submodule_roots)):
|
||||
if any(
|
||||
abs_path == root or abs_path.startswith(root + os.sep)
|
||||
for root in submodule_roots
|
||||
):
|
||||
skipped_paths.append(p)
|
||||
else:
|
||||
repo_paths.append(p)
|
||||
|
||||
Reference in New Issue
Block a user