From 5413dc94ffa18fc514033cbdab22962b74d42a59 Mon Sep 17 00:00:00 2001 From: yaswant <2984440+yaswant@users.noreply.github.com> Date: Fri, 4 Sep 2026 11:35:06 +0100 Subject: [PATCH] Quick fix to identify git repo, worktree or submodule --- script_umdp3_checker/umdp3_conformance.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/script_umdp3_checker/umdp3_conformance.py b/script_umdp3_checker/umdp3_conformance.py index c2ae613a..64c85b6b 100644 --- a/script_umdp3_checker/umdp3_conformance.py +++ b/script_umdp3_checker/umdp3_conformance.py @@ -489,7 +489,8 @@ def print_in_box_b( def which_cms_is_it(path: str, print_volume: int = 3) -> CMSSystem: """Determine which CMS is in use based on the presence of certain files.""" repo_path = Path(path) - if (repo_path / ".git").is_dir(): + if (repo_path / ".git").exists(): + # valid for a repo, worktree, or submodule cms = GitBdiffWrapper(repo_path) elif (repo_path / ".svn").is_dir(): """