Download custom_nodes/ComfyUI-Manager/scripts/update-fix.py from fotographerai/Zen-Style-Shape: direct link, hf CLI and curl.
- Browser
- Download file 222 Bytes
-
https://huggingface.co/spaces/fotographerai/Zen-Style-Shape/resolve/1e1fbeb6135765d0be77b04237eb90cd6ba0d1a0/custom_nodes/ComfyUI-Manager/scripts/update-fix.py
- Command line
-
hf download hf://spaces/fotographerai/Zen-Style-Shape@1e1fbeb6135765d0be77b04237eb90cd6ba0d1a0/custom_nodes/ComfyUI-Manager/scripts/update-fix.py
-
curl -L -o update-fix.py https://huggingface.co/spaces/fotographerai/Zen-Style-Shape/resolve/1e1fbeb6135765d0be77b04237eb90cd6ba0d1a0/custom_nodes/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") | |