skip when .git is not found

This commit is contained in:
wl-zhao
2024-10-21 23:47:43 +08:00
parent 2eea258bc4
commit bf8f352347
+4
View File
@@ -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(