Skip to content

Commit 5485e56

Browse files
authored
exp run: fix failure when dependencies are from inside submodules (#10832)
1 parent e619b6d commit 5485e56

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

dvc/scm.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -305,7 +305,10 @@ def add_no_submodules(
305305

306306
for p in paths:
307307
abs_path = os.path.abspath(p)
308-
if abs_path in submodule_roots or abs_path.startswith(tuple(submodule_roots)):
308+
if any(
309+
abs_path == root or abs_path.startswith(root + os.sep)
310+
for root in submodule_roots
311+
):
309312
skipped_paths.append(p)
310313
else:
311314
repo_paths.append(p)

0 commit comments

Comments
 (0)