Download ComfyUI-Manager/scripts/update-fix.py from crystantine/COMFYUI-CUSTOM-NODES: direct link, hf CLI and curl.
- Browser
- Download file 222 Bytes
-
https://huggingface.co/datasets/crystantine/COMFYUI-CUSTOM-NODES/resolve/main/ComfyUI-Manager/scripts/update-fix.py
- Command line
-
hf download hf://datasets/crystantine/COMFYUI-CUSTOM-NODES/ComfyUI-Manager/scripts/update-fix.py
-
curl -L -o update-fix.py https://huggingface.co/datasets/crystantine/COMFYUI-CUSTOM-NODES/resolve/main/ComfyUI-Manager/scripts/update-fix.py
222 Bytes
| import git | |
| commit_hash = "a361cc1" | |
| repo = git.Repo('.') | |
| if repo.is_dirty(): | |
| repo.git.stash() | |
| repo.git.update_ref("refs/remotes/origin/main", commit_hash) | |
| repo.remotes.origin.fetch() | |
| repo.git.pull("origin", "main") | |