Spaces:
Paused
Paused
Download custom_nodes/ComfyUI-Manager/scripts/update-fix.py from visionMaze/Magic-Me: direct link, hf CLI and curl.
- Browser
- Download file 222 Bytes
-
https://huggingface.co/spaces/visionMaze/Magic-Me/resolve/refs%2Fpr%2F2/custom_nodes/ComfyUI-Manager/scripts/update-fix.py
- Command line
-
hf download hf://spaces/visionMaze/Magic-Me@refs/pr/2/custom_nodes/ComfyUI-Manager/scripts/update-fix.py
-
curl -L -o update-fix.py https://huggingface.co/spaces/visionMaze/Magic-Me/resolve/refs%2Fpr%2F2/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") | |