From bf8f352347ad680436db5686230ffe65c2801c15 Mon Sep 17 00:00:00 2001 From: wl-zhao Date: Mon, 21 Oct 2024 23:47:43 +0800 Subject: [PATCH] skip when .git is not found --- dependency_checker.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/dependency_checker.py b/dependency_checker.py index f7d814e..bafe875 100644 --- a/dependency_checker.py +++ b/dependency_checker.py @@ -59,6 +59,10 @@ def inspect_repo_version(module_path): "repo": "", "commit": "" } + + if not os.path.isdir(os.path.join(module_path, ".git")): + return result + # Get the remote repository URL try: remote_url = subprocess.check_output(