mirror of
https://git.datalinker.icu/ltdrdata/ComfyUI-Manager
synced 2025-12-15 17:14:35 +08:00
fix: scanner.py
This commit is contained in:
parent
f1ae9a088c
commit
d8b4218e8f
@ -245,7 +245,10 @@ def get_py_urls_from_json(json_file):
|
|||||||
|
|
||||||
|
|
||||||
def clone_or_pull_git_repository(git_url):
|
def clone_or_pull_git_repository(git_url):
|
||||||
repo_name = git_url.split("/")[-1].split(".")[0]
|
repo_name = git_url.split("/")[-1]
|
||||||
|
if repo_name.endswith(".git"):
|
||||||
|
repo_name = repo_name[:-4]
|
||||||
|
|
||||||
repo_dir = os.path.join(temp_dir, repo_name)
|
repo_dir = os.path.join(temp_dir, repo_name)
|
||||||
|
|
||||||
if os.path.exists(repo_dir):
|
if os.path.exists(repo_dir):
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user