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(