Skip to content

Commit 780a9a5

Browse files
yaswantt00sa
andauthored
Quick fix to identify git repo, worktree or submodule (#249)
Co-authored-by: Sam Clarke-Green <74185251+t00sa@users.noreply.github.com>
1 parent 6ff7bba commit 780a9a5

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

‎script_umdp3_checker/umdp3_conformance.py‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -489,7 +489,8 @@ def print_in_box_b(
489489
def which_cms_is_it(path: str, print_volume: int = 3) -> CMSSystem:
490490
"""Determine which CMS is in use based on the presence of certain files."""
491491
repo_path = Path(path)
492-
if (repo_path / ".git").is_dir():
492+
if (repo_path / ".git").exists():
493+
# valid for a repo, worktree, or submodule
493494
cms = GitBdiffWrapper(repo_path)
494495
elif (repo_path / ".svn").is_dir():
495496
"""

0 commit comments

Comments
 (0)